Browse Source

Reverse sorted links list to show newers first

Pitu 7 years ago
parent
commit
0f058724f3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/uploadController.js

+ 1 - 0
controllers/uploadController.js

@@ -92,6 +92,7 @@ uploadsController.list = function(req, res){
 		else
 			this.where('albumid', req.params.id)
 	})
+	.sort('id', 'DESC')
 	.then((files) => {
 		db.table('albums').then((albums) => {