also: sort the applications by name.
// get applications
$applications = ApplicationHandler::getInstance()->getApplications();
+ $applications[] = ApplicationHandler::getInstance()->getWCF();
foreach ($applications as $application) {
$package = PackageCache::getInstance()->getPackage($application->packageID);
$this->availableApplications[ApplicationHandler::getInstance()->getAbbreviation($package->packageID)] = $package;
}
+ uasort($this->availableApplications, function ($a, $b) {
+ return $a->getName() > $b->getName();
+ });
}
/**