Fix other duplicate order by statements

This commit is contained in:
James Brooks
2019-01-26 15:00:42 +00:00
parent e21918c81e
commit 0ae510fdf0
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ class ComponentsComposer
public function compose(View $view)
{
$componentGroups = $this->getVisibleGroupedComponents();
$ungroupedComponents = Component::ungrouped()->get();
$ungroupedComponents = Component::ungrouped()->orderBy('status', 'desc')->get();
$view->withComponentGroups($componentGroups)
->withUngroupedComponents($ungroupedComponents);