1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 05:20:56 +01:00

Sort Spaces dropdown by name, not "alphabetical ID"

Summary:
Fixes T10414. I think this sorted by name at one time (the `asort()`) but then I probably added "Space SX" in front of it. Or I just got this wrong from the beginning.

Instead, sort by space name.

Test Plan: {F1126034}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10414

Differential Revision: https://secure.phabricator.com/D15334
This commit is contained in:
epriestley 2016-02-23 10:30:07 -08:00
parent 0799c91822
commit a112bc5cba

View file

@ -184,6 +184,7 @@ final class PhabricatorSpacesNamespaceQuery
$space_phid) {
$viewer_spaces = self::getViewerSpaces($viewer);
$viewer_spaces = msort($viewer_spaces, 'getNamespaceName');
$map = array();
foreach ($viewer_spaces as $space) {
@ -200,7 +201,6 @@ final class PhabricatorSpacesNamespaceQuery
$space->getMonogram(),
$space->getNamespaceName());
}
asort($map);
return $map;
}