From 0058e826b2b3fb90e29655f352e2a3eae247130e Mon Sep 17 00:00:00 2001 From: Julius Date: Fri, 7 Jun 2013 09:35:22 +0200 Subject: [PATCH] Reorder delivery articles --- app/helpers/deliveries_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/deliveries_helper.rb b/app/helpers/deliveries_helper.rb index e682b1d9..b8aa2393 100644 --- a/app/helpers/deliveries_helper.rb +++ b/app/helpers/deliveries_helper.rb @@ -11,7 +11,7 @@ module DeliveriesHelper end def stock_articles_for_select(supplier) - supplier.stock_articles.undeleted.map {|a| ["#{a.name} (#{number_to_currency a.price}/#{a.unit})", a.id] } + supplier.stock_articles.undeleted.reorder('articles.name ASC').map {|a| ["#{a.name} (#{number_to_currency a.price}/#{a.unit})", a.id] } end end