From 8bc6f1d869eaf14b2340176318d3cf6b45eff3cb Mon Sep 17 00:00:00 2001 From: Burt P Date: Sat, 6 Jul 2019 14:33:30 -0500 Subject: struct info: add field sort option to InfoGroup Fields are sorted on flatten. Signed-off-by: Burt P --- modules/computer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/computer.c') diff --git a/modules/computer.c b/modules/computer.c index 3e13ff10..5db291b2 100644 --- a/modules/computer.c +++ b/modules/computer.c @@ -609,6 +609,7 @@ gchar *callback_security(void) if (dir) { struct InfoGroup *vulns = info_add_group(info, _("CPU Vulnerabilities"), info_field_last()); + vulns->sort = INFO_GROUP_SORT_NAME_ASCENDING; const gchar *vuln; while ((vuln = g_dir_read_name(dir))) { -- cgit v1.2.3