snapshot: Sort snapshot list from newest to oldest

Fixes #1655

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati 2019-11-01 23:30:57 +05:30 committed by James Valleroy
parent 1b218666f4
commit 19d96f30e8
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -201,6 +201,7 @@ def subcommand_list(_):
for snapshot in snapshots:
snapshot['is_default'] = (snapshot['number'] == default)
snapshots.reverse()
print(json.dumps(snapshots))