diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-01-26 00:12:14 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-01-26 00:12:14 +0000 |
commit | e8d0c5f2656ebca203aa6336233500e0967b0e30 (patch) | |
tree | 8db9c5d2ca9dceccde523f4c82cdb01391823987 /data/rbot/plugins | |
parent | e0393df5027b33a44b0eac6cfa3dd29fa150fe0a (diff) |
Sort azgame scores from highest to lowest
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/azgame.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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
|