Order areas by name in examples

When you click through to the page for a library you see the available
areas in alphabetical order. The examples given for each library should
match this.
This commit is contained in:
Chris Hill-Scott
2020-08-12 12:03:09 +01:00
parent 53fd5b8869
commit dfa2ae0ced
2 changed files with 4 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ class BroadcastAreasRepository(object):
),
area_count AS (SELECT COUNT(*) AS c FROM areas),
subset_area_count AS (SELECT c - 4 FROM area_count),
description_area_names AS (SELECT name FROM areas LIMIT 4),
description_area_names AS (SELECT name FROM areas ORDER BY name ASC LIMIT 4),
description_areas_joined AS (
SELECT GROUP_CONCAT(name, ", ") FROM description_area_names
)