Change sort order of ordergroups to ascending
Since we sort usually sort list ascending it seams strange to do this different for ordergroups. So align the sort order with the other lists.
This commit is contained in:
parent
460cf1e82c
commit
273969ac90
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
class Foodcoop::OrdergroupsController < ApplicationController
|
class Foodcoop::OrdergroupsController < ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@ordergroups = Ordergroup.undeleted.order('name DESC')
|
@ordergroups = Ordergroup.undeleted.order('name')
|
||||||
|
|
||||||
unless params[:name].blank? # Search by name
|
unless params[:name].blank? # Search by name
|
||||||
@ordergroups = @ordergroups.where('name LIKE ?', "%#{params[:name]}%")
|
@ordergroups = @ordergroups.where('name LIKE ?', "%#{params[:name]}%")
|
||||||
|
|
Loading…
Reference in a new issue