mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sort in SQL (#13238)
This commit is contained in:
@@ -39,7 +39,7 @@ class OverviewController extends Controller
|
||||
public function default(Request $request)
|
||||
{
|
||||
$user = Auth::user();
|
||||
$dashboards = Dashboard::allAvailable($user)->with('user:user_id,username')->get()->keyBy('dashboard_id');
|
||||
$dashboards = Dashboard::allAvailable($user)->with('user:user_id,username')->orderBy('dashboard_name')->get()->keyBy('dashboard_id');
|
||||
|
||||
// Split dashboards into user owned or shared
|
||||
[$user_dashboards, $shared_dashboards] = $dashboards->partition(function ($dashboard) use ($user) {
|
||||
|
||||
Reference in New Issue
Block a user