From 3f3a0d6f0584e868dfb9127b7503fb1d0b77d249 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 18 May 2016 09:55:39 -0400 Subject: [PATCH] Reverse the hearts top5 --- plugins/hearts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hearts.py b/plugins/hearts.py index ca93e67..5090521 100644 --- a/plugins/hearts.py +++ b/plugins/hearts.py @@ -69,7 +69,7 @@ def find_operator(text): def top5(): data = read_data() items = [(score, name) for name, score in data.items()] - items.sort() + items.sort(key=lambda item: item[0], reverse=True) out = '' for idx in range(5): try: