diff options
author | Burt P <pburt0@gmail.com> | 2020-01-10 11:07:39 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2020-01-17 16:14:30 -0800 |
commit | 29f8126a0112c2125aa8b150314521cbc5c7d9fd (patch) | |
tree | fac2a5301b804d3977f88d6d75aa2be3630366a4 /modules | |
parent | 7114175cdb6ff611dfb164959c5aec2099f9e887 (diff) |
pci: sort list of devices
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/devices/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/devices/pci.c b/modules/devices/pci.c index 04a8a0cf..9ca1b847 100644 --- a/modules/devices/pci.c +++ b/modules/devices/pci.c @@ -177,6 +177,7 @@ void scan_pci_do(void) { gchar *pci_icons = g_strdup(""); pcid_list list = pci_get_device_list(0,0); + list = g_slist_sort(list, pcid_cmp_by_addy); GSList *l = list; int c = 0; |