From f65bb4196c3284e691a125c13fcc97efe5c99937 Mon Sep 17 00:00:00 2001 From: Richard Garner Date: Sat, 23 Jan 2021 09:07:35 +1100 Subject: [PATCH] Make order relation on contacts antisymmetric --- lib/mu-contacts.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mu-contacts.cc b/lib/mu-contacts.cc index 157953a4..bf91628b 100644 --- a/lib/mu-contacts.cc +++ b/lib/mu-contacts.cc @@ -87,7 +87,7 @@ struct ContactInfoLessThan { if (ci1.personal != ci2.personal) return ci1.personal; // personal comes first - if (ci1.last_seen > recently_) + if ((ci1.last_seen > recently_) != (ci2.last_seen > recently_)) return ci1.last_seen > ci2.last_seen; if (ci1.freq != ci2.freq) // more frequent comes first