Skip to content

Commit 2d65d0f

Browse files
authored
Add sort for services for group then service
1 parent c9bcbc2 commit 2d65d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/constellation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function render_status($admin = false, $heading = true){
7373
global $mysqli;
7474

7575
//$query = $mysqli->query("SELECT id, name, description FROM services");
76-
$query = $mysqli->query("SELECT services.id, services.name, services.description, services_groups.name as group_name FROM services LEFT JOIN services_groups ON services.group_id=services_groups.id ORDER BY services_groups.name ");
76+
$query = $mysqli->query("SELECT services.id, services.name, services.description, services_groups.name as group_name FROM services LEFT JOIN services_groups ON services.group_id=services_groups.id ORDER BY services_groups.name ASC, services.name;");
7777
$array = array();
7878
if ($query->num_rows){
7979
$timestamp = time();

0 commit comments

Comments
 (0)