diff --git a/fs/store.go b/fs/store.go index 596d1ab62c..1243694fe1 100644 --- a/fs/store.go +++ b/fs/store.go @@ -112,7 +112,7 @@ func (store *Store) Remove(img *Image) error { func (store *Store) List(pth string) ([]*Image, error) { pth = path.Clean(pth) - images, err := store.orm.Select(Image{}, "select images.* from images, paths where Path=? and paths.Image=images.Id", pth) + images, err := store.orm.Select(Image{}, "select images.* from images, paths where Path=? and paths.Image=images.Id order by images.Created desc", pth) if err != nil { return nil, err }