This commit is contained in:
James Cole
2019-08-23 06:40:48 +02:00
parent 3d444eb833
commit a1f57a0949
6 changed files with 140 additions and 73 deletions

View File

@@ -399,7 +399,9 @@ class BillRepository implements BillRepositoryInterface
*/
public function getPaginator(int $size): LengthAwarePaginator
{
return $this->user->bills()->paginate($size);
return $this->user->bills()
->orderBy('active', 'DESC')
->orderBy('name', 'ASC')->paginate($size);
}
/**