Don't need to reverse
This commit is contained in:
parent
07640c2164
commit
478ce9ea37
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue