summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lsusb-t.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lsusb-t.c b/lsusb-t.c
index 88b6553..839321f 100644
--- a/lsusb-t.c
+++ b/lsusb-t.c
@@ -632,6 +632,7 @@ static void sort_dev_siblings(struct usbdevice **d)
pp = d;
swapped = 0;
while (p->next) {
+ sort_dev_siblings(&p->next);
if (p->portnum > p->next->portnum) {
t = p->next;
p->next = t->next;