changeset 542:5557cb62baab

UserList: sort group names
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 14 Jul 2010 00:06:47 +0200
parents df335ad9a37d
children 8893fdfafd75
files data/plugin/macro/UserList.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/UserList.py	Thu Jun 24 13:36:13 2010 +0200
+++ b/data/plugin/macro/UserList.py	Wed Jul 14 00:06:47 2010 +0200
@@ -36,7 +36,7 @@
         account = user.User(request, uid)
         # don't offer groupnames to users which aren't allowed to read them
         grouppage_links = ', '.join([Page(request, groupname).link_to(request)
-                                     for groupname in groupnames
+                                     for groupname in sorted(groupnames)
                                      if account.name in request.groups.get(groupname) and request.user.may.read(groupname)])
 
         userhomepage = Page(request, account.name)