mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Natural Sort Applications by Display Name (#11577)
* Natural Sort Applications by Display Name * some optimizations * .
This commit is contained in:
@@ -11,7 +11,7 @@ $graph_array_zoom['height'] = '150';
|
||||
$graph_array_zoom['width'] = '400';
|
||||
$graph_array['legend'] = 'no';
|
||||
|
||||
foreach (Application::query()->hasAccess(Auth::user())->with('device')->orderBy('app_type')->get()->groupBy('app_type') as $type => $groupedApps) {
|
||||
foreach (Application::query()->hasAccess(Auth::user())->with('device')->get()->sortBy('show_name', SORT_NATURAL|SORT_FLAG_CASE)->groupBy('app_type') as $type => $groupedApps) {
|
||||
echo '<div style="clear: both;">';
|
||||
echo '<h2>'.generate_link($groupedApps->first()->displayName(), array('page' => 'apps', 'app' => $type)).'</h2>';
|
||||
/** @var \Illuminate\Support\Collection $groupedApps */
|
||||
|
Reference in New Issue
Block a user