mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
parent
12e80195d7
commit
85cbd5b1d1
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue