mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-28 23:32:11 -05:00
metrics: Fix sort order
Highest first.
This commit is contained in:
parent
4f576e1c08
commit
d3681f51c0
1 changed files with 1 additions and 1 deletions
|
@ -114,4 +114,4 @@ type bySum []result
|
||||||
|
|
||||||
func (b bySum) Len() int { return len(b) }
|
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) 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 }
|
||||||
|
|
Loading…
Reference in a new issue