mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Sorting on sending list via socket and RESTApi when projecting
This commit is contained in:
@@ -424,7 +424,8 @@ function send_list(coll, socket, send, list_send, configs, shuffled)
|
||||
},
|
||||
{
|
||||
"$project": project_object
|
||||
}
|
||||
},
|
||||
{ "$sort" : { "now_playing" : -1, "votes": -1, "added": 1 } }
|
||||
], function(err, docs)
|
||||
//db.collection(coll).find({type: {$ne: "suggested"}}, function(err, docs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user