Utwórz indeks z wieloma pól Mongo
db.events.find().sort( { username: 1, date: -1 } )
Upvote answer :-)
db.events.find().sort( { username: 1, date: -1 } )