Fix dashboard sorting

This commit is contained in:
Joshua Lambert 2018-04-06 14:26:23 -04:00
parent 85f4e323f9
commit dca4c62f5b
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import _ from 'underscore';
function sortMetrics(metrics) {
return _.chain(metrics).sortBy('weight').sortBy('title').value();
return _.chain(metrics).sortBy('title').sortBy('weight').value();
}
function normalizeMetrics(metrics) {

View File

@ -0,0 +1,5 @@
---
title: Prioritize weight over title when sorting charts
merge_request: 18233
author:
type: fixed