# HG changeset patch # User souliane # Date 1384706611 -3600 # Node ID 56a307f08ffecce7f3a5cfb3a2487e658b76aec3 # Parent 2a93f8e6f989196c10262dcd31821c1c3d3ea89d browser_side: sort the the result of ContactList.getConnected() diff -r 2a93f8e6f989 -r 56a307f08ffe browser_side/contact.py --- 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