feat(files_external): alphabetical sort backends

The front-end will display them in the order returned.

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2026-03-25 18:35:16 -04:00 committed by Ferdinand Thiessen
parent 12e80195d7
commit 85cbd5b1d1

View file

@ -178,7 +178,9 @@ class BackendService {
* @return Backend[]
*/
public function getAvailableBackends() {
return array_filter($this->getBackends(), fn (Backend $backend) => $backend->checkRequiredDependencies() === []);
$backends = array_filter($this->getBackends(), fn (Backend $backend) => $backend->checkRequiredDependencies() === []);
uasort($backends, [Backend::class, 'lexicalCompare']);
return $backends;
}
/**