transport_hid: return sorted list of devices (#77)

This should be deterministic, since dict.values() order is unpredictable.
This commit is contained in:
Roman Zeyde 2016-10-14 20:55:06 +03:00 committed by Pavol Rusnak
parent c6094dc9ad
commit d1397c779c
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def enumerate():
devices[serial_number][1] = path
# List of two-tuples (path_normal, path_debuglink)
return list(devices.values())
return sorted(devices.values())
def path_to_transport(path):
try: