From a216712f3c7bab6709fea60b003128079edd1d39 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Wed, 13 Mar 2013 19:09:19 -0700 Subject: [PATCH] 'docker images' lists images in reverse creation order --- fs/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }