Untitled
public text v1 · immutable// sort array by the name key
function sortServiceList($a, $b) {
$nameKey = DEFINITIONS_SERVICES_CONF_NAME;
if ($servicesList[$a][$nameKey] == $servicesList[$b][$nameKey]) {
return 0;
}
return ($servicesList[$a][$nameKey] < $servicesList[$b][$nameKey]) ? -1 : 1;
}
uksort($servicesList, "sortServiceList");