Experimental sort routine for list of accounts [skip ci]

This commit is contained in:
James Cole 2018-08-02 07:14:00 +02:00
parent 610af45dee
commit f07d8e958f

View File

@ -79,7 +79,7 @@ class IndexController extends Controller
// sort collection:
$collection = $collection->sortBy(
function (Account $account) {
return ($account->active ? '1' : '0') . $account->name;
return ($account->active ? '0' : '1') . $account->name;
}
);