summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-09-27 07:58:22 +0200
committerThomas Haller <thaller@redhat.com>2018-09-27 08:01:35 +0200
commitec96a7184a6dea7ea2c112844ed490243cf12d25 (patch)
treea4f4ec43a5f2a48d3d774048760860f8811eeac6
parent2d2fffce645c6ac7bb0865ebb18918dcc806a7f4 (diff)
dns: fix sort order of DNS configurations by type
-rw-r--r--src/dns/nm-dns-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dns/nm-dns-manager.c b/src/dns/nm-dns-manager.c
index fc1545e52..5ef9a6b83 100644
--- a/src/dns/nm-dns-manager.c
+++ b/src/dns/nm-dns-manager.c
@@ -323,8 +323,8 @@ _ip_config_lst_cmp (const CList *a_lst,
NM_CMP_DIRECT (nm_ip_config_get_dns_priority (a->ip_config),
nm_ip_config_get_dns_priority (b->ip_config));
- /* Sort also according to type */
- NM_CMP_DIRECT (a->ip_config_type, b->ip_config_type);
+ /* Sort according to type (descendingly) */
+ NM_CMP_FIELD (b, a, ip_config_type);
return 0;
}