Skip to content

Commit

Permalink
基本投票順だけど、第二キーとして背番号
Browse files Browse the repository at this point in the history
  • Loading branch information
otiai10 committed Mar 3, 2013
1 parent 4c45276 commit d14b368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/players_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def index
@vote_left = cookies[:vote_left]
cookies[:mess] = { :value => '' }

@players = Player.find(:all, :order => "points DESC")
@players = Player.find(:all, :order => "points DESC, number ASC")
@players.each do |player|
player[:p_twenty] = player.points.to_i.div(20)
player[:p_under_twenty] = player.points.to_i.%20
Expand Down

0 comments on commit d14b368

Please sign in to comment.