Переглянути джерело

Sorted services array

Without, one going offline will make the order jump around
Henry Whitaker 6 роки тому
батько
коміт
92844e9589
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      api/functions/homepage-connect-functions.php

+ 1 - 0
api/functions/homepage-connect-functions.php

@@ -2574,6 +2574,7 @@ function getMonitorr()
 					$statuses[$service]['image'] = $url . '/assets/img/' . $image;
 					$statuses[$service]['image'] = $url . '/assets/img/' . $image;
 				}
 				}
 
 
+				ksort($statuses);
 				$api['services'] = $statuses;
 				$api['services'] = $statuses;
 				$api['options'] = [
 				$api['options'] = [
 					'title' => $GLOBALS['monitorrHeader'],
 					'title' => $GLOBALS['monitorrHeader'],