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