sort '/all' by upload time

This commit is contained in:
Vincent Batts 2013-05-09 12:53:28 -04:00
parent db1e5050e0
commit 240c5bb67d
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ func routeAll(w http.ResponseWriter, r *http.Request) {
// Show a page of all the images
var files []types.File
err := gfs.Find(nil).All(&files)
err := gfs.Find(nil).Sort("-metadata.timestamp").All(&files)
if err != nil {
serverErr(w, r, err)
return