diff --git a/src/applications/project/query/PhabricatorProjectQuery.php b/src/applications/project/query/PhabricatorProjectQuery.php --- a/src/applications/project/query/PhabricatorProjectQuery.php +++ b/src/applications/project/query/PhabricatorProjectQuery.php @@ -95,16 +95,30 @@ return $this; } - protected function getPagingColumn() { - return 'name'; + protected function getDefaultOrderVector() { + return array('name'); } - protected function getPagingValue($result) { - return $result->getName(); + public function getOrderableColumns() { + return array( + 'name' => array( + 'table' => $this->getPrimaryTableAlias(), + 'column' => 'name', + 'reverse' => true, + 'type' => 'string', + 'unique' => true, + ), + ); + } + + protected function getPagingValueMap($cursor, array $keys) { + return array( + 'name' => $cursor, + ); } - protected function getReversePaging() { - return true; + protected function getPagingValue($result) { + return $result->getName(); } protected function loadPage() {