From 7469b05a8b02890734b58bfd9b6e1ee8b4285d95 Mon Sep 17 00:00:00 2001
From: Branson Stephens <branson@gravity.phys.uwm.edu>
Date: Thu, 10 Sep 2015 15:28:21 -0500
Subject: [PATCH] Changed ordering to alphabetical in EM facilities list.

---
 gracedb/views.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gracedb/views.py b/gracedb/views.py
index 8b7db09cb..c571bff6f 100644
--- a/gracedb/views.py
+++ b/gracedb/views.py
@@ -299,7 +299,8 @@ def view(request, event):
     context['nearby'] = [(e.gpstime - event.gpstime, e)
                             for e in event.neighbors()]
 #    context['skyalert_authorized'] = skyalert_authorized(request)
-    context['groups'] = [g.name for g in EMGroup.objects.all()]
+#    context['groups'] = [g.name for g in EMGroup.objects.all()]
+    context['groups'] = [g.name for g in EMGroup.objects.order_by('name')]
     context['blessed_tags'] = settings.BLESSED_TAGS
     context['single_inspiral_events'] = list(event.singleinspiral_set.all())
     context['neighbor_delta'] = "[%+d,%+d]" % (-5,5)
-- 
GitLab