# HG changeset patch # User Madhusudan.C.S # Date 1292068895 -19800 # Node ID 9fb175da83a5d721e67d87e832aafa15ac0c2e42 # Parent 7d3cb6c7a22fb5e50c0c3992742aac4e457dbeb8 Add ordering for names on the CSV list. diff -r 7d3cb6c7a22f -r 9fb175da83a5 project/scipycon/registration/views.py --- a/project/scipycon/registration/views.py Sat Dec 11 14:44:37 2010 +0530 +++ b/project/scipycon/registration/views.py Sat Dec 11 17:31:35 2010 +0530 @@ -419,7 +419,8 @@ 'Accommodation on 16th night', 'Accommodation on 17th night']) - regs = Registration.objects.all() + regs = Registration.objects.order_by( + 'registrant__first_name', 'registrant__last_name') for reg in regs: row = []