diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/leaderboard_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/leaderboard_controller.rb b/app/controllers/leaderboard_controller.rb index e6e8543..14b8acb 100644 --- a/app/controllers/leaderboard_controller.rb +++ b/app/controllers/leaderboard_controller.rb @@ -2,7 +2,7 @@ class LeaderboardController < ApplicationController def index - @top_per_skill = Hash[Skill.all.map { |s| [s.name.to_sym, CharacterSkill.top_xp_for(s)] }] + @top_per_skill = Hash[Skill.all.order(:name).map { |s| [s.name.to_sym, CharacterSkill.top_xp_for(s)] }] @top_total_xp = Character.top_total_xp @top_total_level = Character.top_total_level end |