ref: d3681f51c08fb11e8addcf9f0b484848d20d46cc
parent: 4f576e1c08d85d2e4b69d5a68e99314c1382257d
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Sep 26 16:31:40 EDT 2017
metrics: Fix sort order Highest first.
--- a/metrics/metrics.go
+++ b/metrics/metrics.go
@@ -114,4 +114,4 @@
func (b bySum) Len() int { return len(b) }
func (b bySum) Swap(i, j int) { b[i], b[j] = b[j], b[i] }
-func (b bySum) Less(i, j int) bool { return b[i].sum < b[j].sum }
+func (b bySum) Less(i, j int) bool { return b[i].sum > b[j].sum }