Merge pull request #6 from CachetHQ/2.4

Update from upstream repo CachetHQ/Cachet
This commit is contained in:
Davide Bellini
2016-10-06 11:36:42 +02:00
committed by GitHub

View File

@@ -62,7 +62,7 @@ class ComponentGroupController extends AbstractApiController
$groups->search(Binput::except(['sort', 'order', 'per_page']));
if ($sortBy = Binput::get('sort')) {
$direction = Binput::has('order') && Binput::get('order') == 'desc';
$direction = Binput::get('order', 'asc');
$groups->sort($sortBy, $direction);
}