mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
sort characters alphabetically
This commit is contained in:
parent
a96a73130c
commit
c3934f5ca6
@ -11,6 +11,8 @@ class CharactersController < ApplicationController
|
||||
@characters = []
|
||||
end
|
||||
|
||||
@characters = @characters.sort { |a, b| a.name.downcase <=> b.name.downcase }
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @characters }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user