Fix order for bills.

This commit is contained in:
James Cole
2017-09-01 06:28:26 +02:00
parent 8db9641480
commit ab80803f0f

View File

@@ -116,7 +116,7 @@ class BillRepository implements BillRepositoryInterface
$set = $set->sortBy(
function (Bill $bill) {
$int = $bill->active === 1 ? 0 : 1;
$int = $bill->active ? 0 : 1;
return $int . strtolower($bill->name);
}