aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-10-31 19:21:01 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-10-31 19:21:01 +0000
commit72a21edba8adfe72cff5775a949f24a4d592d043 (patch)
tree3e43ec2b8436844f3cfb81fd1e37fe1f679cca55 /perllib/FixMyStreet/App/Controller/Around.pm
parentf93bc85184077506c555e444c55abbeb1976f03e (diff)
parent22afe5df72196fae2acc8bd6650519fb8de91c88 (diff)
Merge branch 'remove-extra-cat-heading'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index f14d116cc..377449719 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -248,10 +248,9 @@ sub check_and_stash_category : Private {
$where,
{
columns => [ 'category', 'extra' ],
- order_by => [ 'category' ],
distinct => 1
}
- )->all;
+ )->all_sorted;
$c->stash->{filter_categories} = \@categories;
my %categories_mapped = map { $_->category => 1 } @categories;