changeset 265:56a307f08ffe

browser_side: sort the the result of ContactList.getConnected()
author souliane <souliane@mailoo.org>
date Sun, 17 Nov 2013 17:43:31 +0100
parents 2a93f8e6f989
children cc778206b7ae
files browser_side/contact.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/contact.py	Sun Nov 17 17:41:54 2013 +0100
+++ b/browser_side/contact.py	Sun Nov 17 17:43:31 2013 +0100
@@ -312,7 +312,9 @@
 
     def getConnected(self):
         """return a list of all jid (bare jid) connected"""
-        return self.connected.keys()
+        contacts = self.connected.keys()
+        contacts.sort()
+        return contacts
 
     def getContactGroups(self, contact_jid):
         """Get groups where contact is