aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-roster-view.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c
index cbc2c5c14..473344c60 100644
--- a/libempathy-gtk/empathy-roster-view.c
+++ b/libempathy-gtk/empathy-roster-view.c
@@ -584,6 +584,11 @@ compare_group_names (const gchar *group_a,
if (!tp_strdiff (group_b, TOP_GROUP))
return 1;
+ if (!tp_strdiff (group_a, UNGROUPED))
+ return 1;
+ else if (!tp_strdiff (group_b, UNGROUPED))
+ return -1;
+
return g_ascii_strcasecmp (group_a, group_b);
}