Closed undisputed-seraphim closed 10 months ago
If you are going to do this, shouldn't they also be sorted by bus at the same time?
I have added a new commit that performs this sort. Kindly review.
Just checking in on this pull request, it's not clear to me if there is anything that needs to be changed on my side (pending the discussion on whether or not the order of sorting of bus values should be reverse or otherwise)
It also looks like issue #161 asks about this, please let me know if there's been a decision (I'm OK with either way personally, as long as there is a sort)
Sorry for the delay in review, this looks good now, thanks!
On the master branch, device IDs are unsorted. An example from my laptop:
This patch introduces a function that sorts the device IDs by bus:
Signed-off-by: Tan Li Boon liboon.tan@mujin.co.jp
Notes: I'm not really sure if this would be a thing that anyone besides me really 'wants'... Also C is not my primary language, I'm more used to working in C++, so please scrutinize my conventions.