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:
parent
db1e5050e0
commit
240c5bb67d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue