diff --git a/src/applications/spaces/query/PhabricatorSpacesNamespaceQuery.php b/src/applications/spaces/query/PhabricatorSpacesNamespaceQuery.php index 45d7bce1a6..ee11dcdd06 100644 --- a/src/applications/spaces/query/PhabricatorSpacesNamespaceQuery.php +++ b/src/applications/spaces/query/PhabricatorSpacesNamespaceQuery.php @@ -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; }