changeset 33:405d546410a0

sort the host list alphabetically
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 08 Nov 2014 04:14:02 +0100
parents 040dce23204b
children daf6c811d104
files RemoteViewer/Settings.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/RemoteViewer/Settings.py	Wed Oct 08 03:26:23 2014 +0200
+++ b/RemoteViewer/Settings.py	Sat Nov 08 04:14:02 2014 +0100
@@ -15,6 +15,7 @@
         for connectionJson in rawConnections:
             connection = Connection.parse(connectionJson)
             connections.append(connection)
+        connections.sort(key=lambda c: c.displayString())
         return connections
 
     def __connections(self):