]> projects.mako.cc - iron-blogger/commitdiff
Sort users by username.
authorNelson Elhage <nelhage@mit.edu>
Wed, 30 Dec 2009 16:05:22 +0000 (11:05 -0500)
committerNelson Elhage <nelhage@mit.edu>
Wed, 30 Dec 2009 16:05:22 +0000 (11:05 -0500)
templates/users.tmpl

index 0c58f20f3359c909a13471552a73985e9874d14b..9971306f8aa2467ef20b8f77f6b5554c788425db 100644 (file)
@@ -4,7 +4,7 @@
           <th>Blog link</th>
           <th>Start Week</th>
         </tr>
-% for u in userlist:
+% for u in sorted(userlist, key=lambda u:u.username):
         <tr>
           <td><tt> ${u.username} </tt></td>
           <td>

Benjamin Mako Hill || Want to submit a patch?