Fix for mongo sorting in latest mongoose
Merge branch 'hotfix/mongosort'