From 3b1325654ba003f0944b4b58e7a17b1b8261df28 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 28 Apr 2015 11:53:49 -0400 Subject: [PATCH] Sort by lost --- app.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.rb b/app.rb index 3358994..47fc14c 100644 --- a/app.rb +++ b/app.rb @@ -58,5 +58,7 @@ get '/bossfight' do } end + @contributors = @contributors.sort_by { |c| c[:lost] }.reverse + erb :bossfight end