sorting now default starting with most recently created

This commit is contained in:
John O'Keefe 2024-10-04 23:35:00 -04:00
parent cce705c4f7
commit 2800d2fb2e

View File

@ -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