mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 09:56:43 +01:00
fix: sort tags in dropdowns by something resembling a sane order
This commit is contained in:
parent
c54156c050
commit
e02293d60d
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ class SearchController < ApplicationController
|
|||
|
||||
private
|
||||
def load_tags
|
||||
@character_tags = Tag.where(type: 'character').pluck(:name)
|
||||
@other_tags = Tag.where.not(type: 'character').pluck(:name)
|
||||
@character_tags = Tag.where(type: 'character').order(name: :asc).pluck(:name)
|
||||
@other_tags = Tag.where.not(type: 'character').order(name: :asc).pluck(:name)
|
||||
end
|
||||
|
||||
# returns: [included tags, excluded tags]
|
||||
|
|
Loading…
Reference in a new issue