From 932ca95ec5037e220dd02876347d3ef36166f40c Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 10 Jul 2014 12:59:59 +1000 Subject: [PATCH] Sorting hubs by active --- app/views/producers/_fat.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/producers/_fat.html.haml b/app/views/producers/_fat.html.haml index b1eb7196aa..86ed3ad7b7 100644 --- a/app/views/producers/_fat.html.haml +++ b/app/views/producers/_fat.html.haml @@ -26,7 +26,7 @@ %h5 Shop for {{ producer.name }} products at: .row .columns.small-12 - %a.button.hub{"ng-repeat" => "hub in producer.hubs", + %a.button.hub{"ng-repeat" => "hub in producer.hubs | orderBy:'-active'", "bo-href" => "hub.path", "ofn-empties-cart" => "hub", "bo-class" => "{primary: hub.active, secondary: !hub.active}"} %i.ofn-i_033-open-sign{"bo-if" => "hub.active"}