Sort output
This commit is contained in:
parent
2b9d8437f1
commit
1a91c32880
|
@ -57,7 +57,9 @@ def get_rapport(idsonde):
|
|||
pass
|
||||
else:
|
||||
last = utils.prepare(last)
|
||||
for name, data in sorted(last["channels"].items()):
|
||||
for name, data in sorted(
|
||||
last["channels"].items(), key=lambda text: float(text[0].split("#")[0])
|
||||
):
|
||||
yield f'{name} {data["status"]}'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue