From d3681f51c08fb11e8addcf9f0b484848d20d46cc Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Tue, 26 Sep 2017 20:31:40 +0200 Subject: metrics: Fix sort order Highest first. --- metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'metrics') diff --git a/metrics/metrics.go b/metrics/metrics.go index cabf52131..9f8a158ad 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -114,4 +114,4 @@ type bySum []result 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 } -- cgit v1.2.3