summaryrefslogtreecommitdiff
path: root/app/views/projects/commit/_pipeline_stage.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/commit/_pipeline_stage.html.haml')
-rw-r--r--app/views/projects/commit/_pipeline_stage.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commit/_pipeline_stage.html.haml b/app/views/projects/commit/_pipeline_stage.html.haml
index 289aa5178b1..f9a9c8707f5 100644
--- a/app/views/projects/commit/_pipeline_stage.html.haml
+++ b/app/views/projects/commit/_pipeline_stage.html.haml
@@ -1,4 +1,4 @@
-- status_groups = statuses.group_by(&:group_name)
+- status_groups = statuses.sort_by(&:name).group_by(&:group_name)
- status_groups.each do |group_name, grouped_statuses|
- if grouped_statuses.one?
- status = grouped_statuses.first