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
"?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) " \
"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) " \
"?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) " \
"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) " \
"?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) " \
"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) " \