Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-22 23:47:02 +0300
committerMike Greiling <mike@pixelcog.com>2016-11-22 23:47:02 +0300
commit9e87eaf83f6f75e013ef3a7aa565caada70a1390 (patch)
tree951d36f0144a6c6f78518873c55c93ce9cf0c246 /app/views/projects
parentc3f858b764d684321e3c0f149f0eb59029ef04e8 (diff)
sort pipeline graph builds and build groups by name
Diffstat (limited to 'app/views/projects')
-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