# HG changeset patch # User Pawel Solyga # Date 1242909881 -7200 # Node ID 91379f6b8fcb4aab0d5fda2d3b38b103e7994fe1 # Parent 068540d91bde21e1c357f885094ad1c202d64e4f 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. diff -r 068540d91bde -r 91379f6b8fcb app/soc/views/models/organization.py --- 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: