Commit 643e1044 authored by Romain Bignon's avatar Romain Bignon

order users by state on webview

parent a3987c2e
......@@ -220,7 +220,7 @@ class Event(object):
def iter_users(self):
for username in sorted(self.users.keys(), key=unicode.lower):
for username, state in sorted(self.users.iteritems(), key=lambda (k, v): (v, k)):
yield self.get_user(username)
def get_user(self, username):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment