mirror of
https://github.com/Neetpone/foalfetch.git
synced 2025-02-08 18:06: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
|
private
|
||||||
def load_tags
|
def load_tags
|
||||||
@character_tags = Tag.where(type: 'character').pluck(:name)
|
@character_tags = Tag.where(type: 'character').order(name: :asc).pluck(:name)
|
||||||
@other_tags = Tag.where.not(type: 'character').pluck(:name)
|
@other_tags = Tag.where.not(type: 'character').order(name: :asc).pluck(:name)
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns: [included tags, excluded tags]
|
# returns: [included tags, excluded tags]
|
||||||
|
|
Loading…
Reference in a new issue