From 29f8126a0112c2125aa8b150314521cbc5c7d9fd Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 10 Jan 2020 11:07:39 -0600 Subject: pci: sort list of devices Signed-off-by: Burt P --- modules/devices/pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/devices') 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; -- cgit v1.2.3