From c891a00d68f0362b5fe163cb7614027af5887a36 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Sat, 11 Feb 2012 11:34:54 -0800 Subject: [PATCH] Change memo sort-order --- memos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memos.py b/memos.py index f3093cf..df03a10 100644 --- a/memos.py +++ b/memos.py @@ -665,7 +665,7 @@ class PesterMemo(PesterConvo): item.halfop = halfop item.admin = admin item.voice = voice - self.umodes = ["box", "founder", "op", "halfop", "admin", "voice"] + self.umodes = ["box", "founder", "admin", "op", "halfop", "voice"] self.iconCrap(item) self.userlist.addItem(item) self.sortUsers() @@ -676,7 +676,7 @@ class PesterMemo(PesterConvo): while listing is not None: users.append(self.userlist.takeItem(0)) listing = self.userlist.item(0) - users.sort(key=lambda x: ((-1 if x.box else (0 if x.founder else (1 if x.op else (2 if x.halfop else (3 if x.admin else (4 if x.voice else 5)))))), x.text())) + users.sort(key=lambda x: ((-1 if x.box else (0 if x.founder else (1 if x.admin else (2 if x.op else (3 if x.halfop else (4 if x.voice else 5)))))), x.text())) for u in users: self.userlist.addItem(u)