Skip to content

Commit

Permalink
metrics: Fix sort order
Browse files Browse the repository at this point in the history
Highest first.
  • Loading branch information
bep committed Sep 26, 2017
1 parent 4f576e1 commit d3681f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit d3681f5

Please sign in to comment.