Better order and display.

This commit is contained in:
James Cole
2016-01-15 10:52:35 +01:00
parent 209258b507
commit fcf6cdb134
2 changed files with 32 additions and 6 deletions

View File

@@ -548,10 +548,12 @@ class RuleController extends Controller
{
$ruleGroups = Auth::user()
->ruleGroups()
->orderBy('active', 'DESC')
->orderBy('order', 'ASC')
->with(
[
'rules' => function ($query) {
$query->orderBy('active', 'DESC');
$query->orderBy('order', 'ASC');
},