Fix dashboard sorting
This commit is contained in:
parent
85f4e323f9
commit
dca4c62f5b
|
@ -1,7 +1,7 @@
|
||||||
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) {
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Prioritize weight over title when sorting charts
|
||||||
|
merge_request: 18233
|
||||||
|
author:
|
||||||
|
type: fixed
|
Loading…
Reference in New Issue