diff --git a/src/tooltips.py b/src/tooltips.py
index f8de2a26f0725a748ba03a3862195c49edc92689..9ff9f9a94a255669a00f00c4e5cd1b6633f62694 100644
--- a/src/tooltips.py
+++ b/src/tooltips.py
@@ -541,7 +541,8 @@ class RosterTooltip(NotificationAreaTooltip):
 		if num_resources > 1:
 			properties.append((_('Status: '),	' '))
 			contact_keys = contacts_dict.keys()
-			contact_keys.sort(reverse = True)
+			contact_keys.sort()
+			contact_keys.reverse()
 			for priority in contact_keys:
 				for contact in contacts_dict[priority]:
 					status_line = self.get_status_info(contact.resource,