From 1db7c73c42393ae68d77b7fce69d69c92e38b7d2 Mon Sep 17 00:00:00 2001 From: Et0h Date: Tue, 21 Oct 2014 23:29:59 +0100 Subject: [PATCH] Controllers listed first --- syncplay/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syncplay/client.py b/syncplay/client.py index 6b786e5..e31c44e 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -524,7 +524,10 @@ class SyncplayUser(object): return sameName and sameSize and sameDuration def __lt__(self, other): - return self.username.lower() < other.username.lower() + if self.isController() == other.isController(): + return self.username.lower() < other.username.lower() + else: + return self.isController() > other.isController() def __repr__(self, *args, **kwargs): if self.file: