1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-11-27 10:35:41 +00:00

sort '/all' by upload time

This commit is contained in:
Vincent Batts 2013-05-09 12:53:28 -04:00
parent db1e5050e0
commit 240c5bb67d

View file

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