sorting now default starting with most recently created
This commit is contained in:
parent
cce705c4f7
commit
2800d2fb2e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user