Remove various sort routines.

This commit is contained in:
James Cole
2019-05-04 20:58:43 +02:00
parent d5c5fa4fad
commit 8676764513
19 changed files with 261 additions and 151 deletions

View File

@@ -103,16 +103,7 @@ class Bill
*/
public function getBills(): Collection
{
$set = $this->bills->sortBy(
function (BillLine $bill) {
$active = 0 === (int)$bill->getBill()->active ? 1 : 0;
$name = $bill->getBill()->name;
return $active . $name;
}
);
return $set;
return $this->bills;
}
/**