Sort account list.

This commit is contained in:
James Cole 2015-03-02 15:46:31 +01:00
parent 23fc652092
commit ad2aebb54d

View File

@ -128,7 +128,7 @@ class AccountController extends Controller
['accountmeta' => function ($query) { ['accountmeta' => function ($query) {
$query->where('name', 'accountRole'); $query->where('name', 'accountRole');
}] }]
)->accountTypeIn($types)->take($size)->offset($offset)->get(['accounts.*']); )->accountTypeIn($types)->take($size)->offset($offset)->orderBy('accounts.name','ASC')->get(['accounts.*']);
$total = Auth::user()->accounts()->accountTypeIn($types)->count(); $total = Auth::user()->accounts()->accountTypeIn($types)->count();
// last activity: // last activity: