Order bills.

This commit is contained in:
James Cole 2015-03-04 09:44:48 +01:00
parent f5437a17f8
commit 8d62088576

View File

@ -81,7 +81,7 @@ class BillController extends Controller
*/
public function index(BillRepositoryInterface $repository)
{
$bills = Auth::user()->bills()->get();
$bills = Auth::user()->bills()->orderBy('name','ASC')->get();
$bills->each(
function (Bill $bill) use ($repository) {
$bill->nextExpectedMatch = $repository->nextExpectedMatch($bill);