summaryrefslogtreecommitdiff
path: root/libpod/sql_state.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/sql_state.go')
-rw-r--r--libpod/sql_state.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/sql_state.go b/libpod/sql_state.go
index 893223914..8b18a8959 100644
--- a/libpod/sql_state.go
+++ b/libpod/sql_state.go
@@ -544,7 +544,8 @@ func (s *SQLState) AllContainers() ([]*Container, error) {
containerState.Pid
FROM containers
INNER JOIN
- containerState ON containers.Id = containerState.Id;`
+ containerState ON containers.Id = containerState.Id
+ ORDER BY containers.CreatedTime DESC;`
if !s.valid {
return nil, ErrDBClosed