aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-contact-list-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c
index 8e3b7b34c..261b2cc60 100644
--- a/libempathy-gtk/empathy-contact-list-store.c
+++ b/libempathy-gtk/empathy-contact-list-store.c
@@ -1354,7 +1354,7 @@ contact_list_store_state_sort_func (GtkTreeModel *model,
/* If we managed to get this far, we can start looking at
* the presences.
*/
- ret_val = tp_connection_presence_type_cmp_availability (
+ ret_val = -tp_connection_presence_type_cmp_availability (
empathy_contact_get_presence (EMPATHY_CONTACT (contact_a)),
empathy_contact_get_presence (EMPATHY_CONTACT (contact_b)));