From 7c6e016d4908a796f8e2ac9aa87917f5190d2858 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Wed, 19 May 2010 19:39:11 -0300 Subject: [PATCH] obexd: Fix the order of the calls handles On the mch, ich and och folders the handles must be ordered by the received date or the sent date of each call. --- obexd/plugins/phonebook-tracker.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index e0cf65adf..971f90309 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) " \ -- 2.47.3