[gnome-contacts] Contact: sort postal addresses before notes.



commit bce755343266f6eacd418466efc59eab72e45626
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Tue Feb 13 21:10:45 2018 +0100

    Contact: sort postal addresses before notes.

 src/contacts-contact.vala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 99a0478..387ca17 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -579,7 +579,7 @@ public class Contacts.Contact : GLib.Object  {
     return store.display_name;
   }
 
-  private const string[] SORTED_PROPERTIES = { "email-addresses" , "phone-numbers" , "im-addresses", "urls", 
"nickname", "birthday", "notes", "postal-addresses" };
+  private const string[] SORTED_PROPERTIES = { "email-addresses" , "phone-numbers" , "im-addresses", "urls", 
"nickname", "birthday", "postal-addresses", "notes" };
 
   public static string[] sort_persona_properties (string[] props) {
     CompareDataFunc<string> compare_properties = (a, b) => {
@@ -600,7 +600,6 @@ public class Contacts.Contact : GLib.Object  {
 
     sorted_props.sort ((owned) compare_properties);
     return sorted_props.to_array ();
-
   }
 
   /* Tries to set the property on all persons that have it writeable, and


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]