mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Order variant search by display_name
This commit is contained in:
@@ -34,7 +34,9 @@ module OpenFoodNetwork
|
||||
def query_scope
|
||||
Spree::Variant.where(is_master: false).
|
||||
includes(option_values: :option_type).
|
||||
ransack(search_params.merge(m: 'or')).result
|
||||
ransack(search_params.merge(m: 'or')).
|
||||
result.
|
||||
order("display_name")
|
||||
end
|
||||
|
||||
def distributor
|
||||
|
||||
Reference in New Issue
Block a user