Skip to content

Commit d7bd7c5

Browse files
committed
changed to sorting on _id instead of timestamp
1 parent 0949fb5 commit d7bd7c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cube/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ exports.getter = function(db) {
193193
sort = null;
194194
}
195195
if (sort !== false) {
196-
query.push({ $sort: (sort || { 'd.user.username': 1, 't': 1 }) });
196+
query.push({ $sort: (sort || { 'd.user.username': 1, '_id': 1 }) });
197197
}
198198

199199
// Write the grouping clause

0 commit comments

Comments
 (0)