Don't need to reverse

This commit is contained in:
Andrew Tomaka 2015-04-26 11:49:08 -04:00
parent 07640c2164
commit 478ce9ea37

2
app.rb
View file

@ -12,7 +12,7 @@ get '/' do
end
leaders = Leader.all.includes(:last_attack, :last_defense)
@top20 = leaders.reject { |l| l.last_action } + leaders.select { |l| l.last_action }.sort_by { |l| l.last_action }.reverse
@top20 = leaders.reject { |l| l.last_action } + leaders.select { |l| l.last_action }.sort_by { |l| l.last_action }
erb :index
end