提交 9b5218a4 编写于 作者: Y youyong205

modify the order

上级 999b8fa9
......@@ -132,10 +132,10 @@ public class GraphCreator {
Collections.sort(configs, new Comparator<MetricItemConfig>() {
@Override
public int compare(MetricItemConfig o1, MetricItemConfig o2) {
return o1.getShowDashboardOrder() - o2.getShowDashboardOrder();
return (int) (o1.getShowDashboardOrder() * 100 - o2.getShowDashboardOrder() * 100);
}
});
for (MetricItemConfig config : configs) {
String key = config.getId();
if (config.getShowAvg() && config.getShowAvgDashboard()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册