Diff between 387deddcbfad9e917a927a239eda17e516c2607b and 7c6e016d4908a796f8e2ac9aa87917f5190d2858

Changed Files

File Additions Deletions Status
obexd/plugins/phonebook-tracker.c +6 -6 modified

Full Patch

diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c
index e0cf65a..971f903 100644
--- a/obexd/plugins/phonebook-tracker.c
+++ b/obexd/plugins/phonebook-tracker.c
@@ -84,7 +84,7 @@
 		"?c nco:hasAffiliation ?a . "				\
 		"?a nco:hasPhoneNumber ?w . "				\
 	"} "								\
-	"}"
+	"} ORDER BY DESC(nmo:receivedDate(?call))"
 
 #define MISSED_CALLS_LIST						\
 	"SELECT nco:contactUID(?c) nco:nameFamily(?c) "			\
@@ -98,7 +98,7 @@
 		"nmo:isAnswered false ."				\
 		"?c a nco:PersonContact ; "				\
 		"nco:hasPhoneNumber ?h . "				\
-	"}"
+	"} ORDER BY DESC(nmo:receivedDate(?call))"
 
 #define INCOMING_CALLS_QUERY						\
 	"SELECT nco:phoneNumber(?h) nco:fullname(?c) "			\
@@ -116,7 +116,7 @@
 		"?c nco:hasAffiliation ?a . "				\
 		"?a nco:hasPhoneNumber ?w . "				\
 	"} "								\
-	"}"
+	"} ORDER BY DESC(nmo:receivedDate(?call))"
 
 #define INCOMING_CALLS_LIST						\
 	"SELECT nco:contactUID(?c) nco:nameFamily(?c) "			\
@@ -129,7 +129,7 @@
 		"nmo:isSent false . "					\
 		"?c a nco:PersonContact ; "				\
 		"nco:hasPhoneNumber ?h . "				\
-	"}"
+	"} ORDER BY DESC(nmo:receivedDate(?call))"
 
 #define OUTGOING_CALLS_QUERY						\
 	"SELECT nco:phoneNumber(?h) nco:fullname(?c) "			\
@@ -147,7 +147,7 @@
 		"?c nco:hasAffiliation ?a . "				\
 		"?a nco:hasPhoneNumber ?w . "				\
 	"} "								\
-	"}"
+	"} ORDER BY DESC(nmo:sentDate(?call))"
 
 #define OUTGOING_CALLS_LIST						\
 	"SELECT nco:contactUID(?c) nco:nameFamily(?c) "			\
@@ -160,7 +160,7 @@
 		"nmo:isSent true . "					\
 		"?c a nco:PersonContact ; "				\
 		"nco:hasPhoneNumber ?h . "				\
-	"}"
+	"} ORDER BY DESC(nmo:sentDate(?call))"
 
 #define COMBINED_CALLS_QUERY						\
 	"SELECT nco:phoneNumber(?h) nco:fullname(?c) "			\