See Debian bug report #927188 (https://bugs.debian.org/927188): The lsusb seems to list busses in reverse order.
For the simple mode (default), this can be fixed by adding sorter in list_devices (patch available upon request).
For the tree mode (-t), I noticed the buses are sorted in reverse order by intention:
static void sort_busses(void)
{
/* need to reverse sort bus numbers */
[lsusb-t.c:661]
This has been around since the introduction in 2009.
While reversing the sort order is trivial - mind to explain the idea behind this?
See Debian bug report #927188 (https://bugs.debian.org/927188): The lsusb seems to list busses in reverse order. For the simple mode (default), this can be fixed by adding sorter in
list_devices
(patch available upon request). For the tree mode (-t), I noticed the buses are sorted in reverse order by intention:[lsusb-t.c:661]
This has been around since the introduction in 2009. While reversing the sort order is trivial - mind to explain the idea behind this?