sort wasn't working
This commit is contained in:
parent
02ee1905d6
commit
34c9598b63
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ module MetacodesHelper
|
|||
metacode_sets += MetacodeSet.order("name").all.map do |set|
|
||||
{
|
||||
name: set.name,
|
||||
metacodes: set.metacodes.sort(&:name)
|
||||
metacodes: set.metacodes.order("name")
|
||||
.map { |m| { id: m.id, icon_path: asset_path(m.icon), name: m.name } }
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue