From 273969ac906ef30400d53af1928760b10a306ad1 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Wed, 17 Feb 2016 23:58:53 +0100 Subject: [PATCH] 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. --- app/controllers/foodcoop/ordergroups_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/foodcoop/ordergroups_controller.rb b/app/controllers/foodcoop/ordergroups_controller.rb index 5391b798..d557cb72 100644 --- a/app/controllers/foodcoop/ordergroups_controller.rb +++ b/app/controllers/foodcoop/ordergroups_controller.rb @@ -1,7 +1,7 @@ class Foodcoop::OrdergroupsController < ApplicationController def index - @ordergroups = Ordergroup.undeleted.order('name DESC') + @ordergroups = Ordergroup.undeleted.order('name') unless params[:name].blank? # Search by name @ordergroups = @ordergroups.where('name LIKE ?', "%#{params[:name]}%")