diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-09-26 20:31:40 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-09-26 20:31:40 +0200 |
commit | d3681f51c08fb11e8addcf9f0b484848d20d46cc (patch) | |
tree | 798e24d013f71f7673498da5c66266c4ea443ed7 /metrics | |
parent | 4f576e1c08d85d2e4b69d5a68e99314c1382257d (diff) | |
download | hugo-d3681f51c08fb11e8addcf9f0b484848d20d46cc.tar.gz hugo-d3681f51c08fb11e8addcf9f0b484848d20d46cc.zip |
metrics: Fix sort order
Highest first.
Diffstat (limited to 'metrics')
-rw-r--r-- | metrics/metrics.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |