public function compareInstalledApps(EyeosApplicationDescriptor $a, EyeosApplicationDescriptor $b) { return strcasecmp($a->getName(), $b->getName()); /*$valueA = $a->getApplicationInformation()->getInstalled(); $valueB = $b->getApplicationInformation()->getInstalled(); if ($valueA == -1) { return -1; } if ($valueB == -1) { return 1; } return $valueB - $valueA;*/ }