fix #6579 cli ps --all

Signed-off-by: Seedf <github_commit@nohdmi.com>
This commit is contained in:
noname 2019-04-18 00:15:29 -07:00
parent a5b13f369d
commit c2783d6f88
1 changed files with 2 additions and 1 deletions

View File

@ -721,7 +721,8 @@ class TopLevelCommand(object):
if options['--all']:
containers = sorted(self.project.containers(service_names=options['SERVICE'],
one_off=OneOffFilter.include, stopped=True))
one_off=OneOffFilter.include, stopped=True),
key=attrgetter('name'))
else:
containers = sorted(
self.project.containers(service_names=options['SERVICE'], stopped=True) +