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(' ')
 | 
					        const sortBy = req.query.sort.split(',').join(' ')
 | 
				
			||||||
        query = query.sort(sortBy)
 | 
					        query = query.sort(sortBy)
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        query = query.sort('series title')
 | 
					        query = query.sort('-createDate series title')
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Pagination
 | 
					// Pagination
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user