Riak Sort on MapReduce

James Proud james.proud at gmail.com
Sat Mar 17 18:09:08 EDT 2012


function(values) {

    return values.sort(
        function(a, b) {

            return b['timestamp'] - a['timestamp'];

        }
    );
}

I'm currently executing the above code for the reduce phase of a Riak
MapReduce query but it is not correctly sorting by the value of timestamp
key. Any ideas why?
Stackoverflow:
http://stackoverflow.com/questions/9752931/riak-sort-on-map-reduce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120317/ddd48ce8/attachment.html>


More information about the riak-users mailing list