mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +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:
parent
dc09d60185
commit
0e612c910b
2 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,7 @@ final class DiffusionHomeController extends DiffusionController {
|
|||
unset($repositories[$key]);
|
||||
}
|
||||
}
|
||||
$repositories = msort($repositories, 'getName');
|
||||
|
||||
$repository_ids = mpull($repositories, 'getID');
|
||||
$summaries = array();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue