From 14bdcd95e62c6174111fc0f344c41c77a58dcdbd Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Wed, 4 Dec 2024 09:10:05 +0100
Subject: [PATCH] Fix location order in program

---
 app/views/admin/education/programs/static.html.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/admin/education/programs/static.html.erb b/app/views/admin/education/programs/static.html.erb
index 0a72432cf..806247998 100644
--- a/app/views/admin/education/programs/static.html.erb
+++ b/app/views/admin/education/programs/static.html.erb
@@ -118,7 +118,7 @@ roles:
 roles: []
 <% end %>
 locations:
-<% program.locations.each do |location| %>
+<% program.locations.ordered(language).each do |location| %>
   <%
   location_l10n = location.localization_for(language)
   next if location_l10n.nil?
-- 
GitLab