Add sorting of student projects on organization home page.
List of student projects on organization home page is now sorted in alphabetical order by student name. Fixes issue 613.
--- a/app/soc/views/models/organization.py Thu May 21 13:25:11 2009 +0200
+++ b/app/soc/views/models/organization.py Thu May 21 14:44:41 2009 +0200
@@ -554,6 +554,8 @@
ap_list = lists.getListContent(request, ap_params, filter, idx=0,
need_content=True)
+ ap_list['data'].sort(key=lambda sp: sp.student.name().lower())
+
contents = []
if ap_list: