Order accounts by name.

This commit is contained in:
James Cole 2015-02-27 11:57:47 +01:00
parent 021999d05f
commit c69ef34ac9

View File

@ -110,7 +110,7 @@ class ReportQuery implements ReportQueryInterface
*/
public function getAllAccounts(Carbon $start, Carbon $end)
{
$set = Auth::user()->accounts()
$set = Auth::user()->accounts()->orderBy('accounts.name','ASC')
->accountTypeIn(['Default account', 'Asset account', 'Cash account'])
->leftJoin(
'account_meta', function (JoinClause $join) {