Sorting should now match updated lsusb
1, 2, which sorts by bus and device number within bus.
Tidied up sort logic by doing in display::prepare rather than at display function. Default is now Sort::DeviceNumber to match lsusb and I think makes most sense since device number is default display block - previously would sort on Sort::BranchPosition when using --tree.
Sort::BranchPosition can still be requested by user with --sort-devices branch-position and still works as intended. Note that it will sort by parent branch number first so may not appear sorted down the tree.
Sorting should now match updated lsusb 1, 2, which sorts by bus and device number within bus.
Tidied up sort logic by doing in
display::prepare
rather than at display function. Default is nowSort::DeviceNumber
to match lsusb and I think makes most sense since device number is default display block - previously would sort onSort::BranchPosition
when using--tree
.Sort::BranchPosition
can still be requested by user with--sort-devices branch-position
and still works as intended. Note that it will sort by parent branch number first so may not appear sorted down the tree.Closes #33