Commit 2d8e3d9f authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Add feature: sort list_local_databases output

parent 4cb6dfef
......@@ -78,7 +78,7 @@ def list_local_databases(args):
table = prettytable.PrettyTable()
table.field_names = ['name', 'description', 'version', 'tool', 'location','created']
for db in dbs:
for db in sorted(dbs, key = lambda db: db['name']+db['tool']+db['version']):
table.add_row([db['name'], db['description'], db['version'], db['tool'], db['location'], db['creation_date']])
print(table)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment