From a4fd340a53cc2b41f472bd78bb9898b89b8b9c90 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Wed, 11 Mar 2020 13:11:22 -0400 Subject: [PATCH] newsbid: sort reverse --- plugins/newsbid/webshit/webshit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/newsbid/webshit/webshit.go b/plugins/newsbid/webshit/webshit.go index 46f49ad..beac1ee 100644 --- a/plugins/newsbid/webshit/webshit.go +++ b/plugins/newsbid/webshit/webshit.go @@ -61,7 +61,7 @@ type Balances []Balance func (b Balances) Len() int { return len(b) } func (b Balances) Swap(i, j int) { b[i], b[j] = b[j], b[i] } -func (b Balances) Less(i, j int) bool { return b[i].Score < b[j].Score } +func (b Balances) Less(i, j int) bool { return b[i].Score > b[j].Score } type WeeklyResult struct { User string