Commit aade8b36 authored by Clement Ho's avatar Clement Ho

Merge branch 'fix-dashboard-sorting' into 'master'

Fix Prometheus dashboard sorting

See merge request gitlab-org/gitlab-ce!18233
parents 85f4e323 dca4c62f
import _ from 'underscore'; import _ from 'underscore';
function sortMetrics(metrics) { function sortMetrics(metrics) {
return _.chain(metrics).sortBy('weight').sortBy('title').value(); return _.chain(metrics).sortBy('title').sortBy('weight').value();
} }
function normalizeMetrics(metrics) { function normalizeMetrics(metrics) {
......
---
title: Prioritize weight over title when sorting charts
merge_request: 18233
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment