Put back the sort for the leaderboard handler.

This commit is contained in:
Scott Erickson 2014-03-14 11:57:17 -07:00
parent 8431fd1e57
commit eee4934d1b

View file

@ -136,10 +136,11 @@ LevelHandler = class LevelHandler extends Handler
'creatorName'
'creator'
]
query = Session
.find(sessionsQueryParameters)
.limit(req.query.limit)
.sort(sortParameters)
.select(selectProperties.join ' ')
query.exec (err, resultSessions) =>