From: Giuseppe Bilotta Date: Fri, 26 Jan 2007 00:12:14 +0000 (+0000) Subject: Sort azgame scores from highest to lowest X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=e8d0c5f2656ebca203aa6336233500e0967b0e30;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Sort azgame scores from highest to lowest --- diff --git a/data/rbot/plugins/azgame.rb b/data/rbot/plugins/azgame.rb index ae6dbeb7..ae410e87 100644 --- a/data/rbot/plugins/azgame.rb +++ b/data/rbot/plugins/azgame.rb @@ -77,7 +77,7 @@ class AzGame tries = ret[@winner].last ret[@winner] = [t, "winner, #{tries}"] end - return ret.sort_by { |h| h.last.first } + return ret.sort_by { |h| h.last.first }.reverse end end