1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 13:30:55 +01:00

Sort repositories in Diffusion by name, not creation order

Summary: Ref T2298. This seems like the least complicated reasonable order to implement.

Test Plan: Looked at repositories, saw them ordered by name.

Reviewers: vrana, btrahan, brennantaylor

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2298

Differential Revision: https://secure.phabricator.com/D4395
This commit is contained in:
epriestley 2013-01-16 10:51:08 -08:00
parent dc09d60185
commit 0e612c910b
2 changed files with 2 additions and 0 deletions

View file

@ -51,6 +51,7 @@ final class DiffusionHomeController extends DiffusionController {
unset($repositories[$key]);
}
}
$repositories = msort($repositories, 'getName');
$repository_ids = mpull($repositories, 'getID');
$summaries = array();

View file

@ -14,6 +14,7 @@ final class PhabricatorRepositoryListController
$is_admin = $user->getIsAdmin();
$repos = id(new PhabricatorRepository())->loadAll();
$repos = msort($repos, 'getName');
$rows = array();
foreach ($repos as $repo) {