diff --git a/middleware/advancedResults.js b/middleware/advancedResults.js index c1a19ae..63ff53a 100644 --- a/middleware/advancedResults.js +++ b/middleware/advancedResults.js @@ -162,7 +162,7 @@ const advancedResults = (model, populate) => async (req, res, next) => { const sortBy = req.query.sort.split(',').join(' ') query = query.sort(sortBy) } else { - query = query.sort('series title') + query = query.sort('-createDate series title') } // Pagination