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
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com