Some cleaning up [skip ci]

This commit is contained in:
James Cole
2015-07-09 11:13:38 +02:00
parent 84566310de
commit 43d6b51d42
3 changed files with 10 additions and 27 deletions

View File

@@ -107,9 +107,16 @@ class BudgetRepository extends ComponentRepository implements BudgetRepositoryIn
*/
public function getBudgets()
{
$budgets = Auth::user()->budgets()->get();
/** @var Collection $set */
$set = Auth::user()->budgets()->get();
return $budgets;
$set = $set->sortBy(
function (Budget $budget) {
return strtolower($budget->name);
}
);
return $set;
}
/**