Commit dca4c62f authored by Joshua Lambert's avatar Joshua Lambert

Fix dashboard sorting

parent 85f4e323
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) {
......
---
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