diff options
author | Burt P <pburt0@gmail.com> | 2019-07-06 14:33:30 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-06 13:08:54 -0700 |
commit | 8bc6f1d869eaf14b2340176318d3cf6b45eff3cb (patch) | |
tree | bf3af15276f06f451c6dfcfd3bca7eb2142a6559 /modules/computer.c | |
parent | 1d22dffebc3ef27b0fd3cf6fc7f0a47124ca5e5d (diff) |
struct info: add field sort option to InfoGroup
Fields are sorted on flatten.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/computer.c')
-rw-r--r-- | modules/computer.c | 1 |
1 files changed, 1 insertions, 0 deletions
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))) { |