@@ 72,7 72,7 @@ def get_ports(filter=None, use_db=True, fixed=False, portinfo=False, devinfo=Fal
device_subclass = sysfs_hex(port, 'bDeviceSubClass')
device_protocol = sysfs_hex(port, 'bDeviceProtocol')
print(f" Class {device_class:02X} SubClass {device_subclass:02X} Protocol {device_protocol:02X}")
- for intf in glob.glob(os.path.join(port, "*:*")):
+ for intf in sorted(glob.glob(os.path.join(port, "*:*"))):
number = sysfs_int(intf, "bInterfaceNumber")
intf_class = sysfs_hex(intf, "bInterfaceClass")
intf_subclass = sysfs_hex(intf, "bInterfaceSubClass")