From a4de56a3d14fa5130fd8681f9ebc93c520592dcb Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 27 Sep 2018 07:58:22 +0200 Subject: [PATCH] dns: fix sort order of DNS configurations by type Fixes: d7017005e1ffe169ee110bfccfb01fa2345ceb13 --- src/dns/nm-dns-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dns/nm-dns-manager.c b/src/dns/nm-dns-manager.c index fc1545e521..5ef9a6b83f 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; }