Sort users by name in /user
[ais.git] / bin / djais / views.py
index 9726731614ff54fad6b0bf446a7bf616bb997225..f52c8709c41d647551ec05d8b646031e554982df 100644 (file)
@@ -520,7 +520,7 @@ def fleet_lastpos(request, fleetname):
 
 @http_authenticate(auth, 'ais')
 def users(request):
-    users = User.objects.all()
+    users = User.objects.order_by('name')
     for user in users:
         user.admin_ok = user.is_admin_by(request.user.id)
     if request.REQUEST.has_key('showtree'):