forked from M-Labs/artiq
artiq_run: sort result output alphabetically
This commit is contained in:
parent
614a96a3d7
commit
656099a331
@ -123,8 +123,9 @@ def main():
|
||||
else:
|
||||
if rdb.data.read or rdb.realtime_data.read:
|
||||
print("Results:")
|
||||
for k, v in chain(rdb.realtime_data.read.items(),
|
||||
rdb.data.read.items()):
|
||||
for k, v in sorted(chain(rdb.realtime_data.read.items(),
|
||||
rdb.data.read.items()),
|
||||
key=itemgetter(0)):
|
||||
print("{}: {}".format(k, v))
|
||||
finally:
|
||||
dbh.close()
|
||||
|
Loading…
Reference in New Issue
Block a user