diff --git a/lib/Pear/LocalLoop/Controller/Api/Categories.pm b/lib/Pear/LocalLoop/Controller/Api/Categories.pm index 8e52d4b..10b4380 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Categories.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Categories.pm @@ -33,7 +33,7 @@ sub post_category_list { } ], group_by => [ qw/ category_id quantised_weeks / ], - order_by => { '-desc' => 'quantised_weeks' }, + order_by => { '-desc' => 'value' }, } );