Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14731974
D19907.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19907.diff
View Options
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
@@ -187,6 +187,11 @@
'column' => 'milestoneNumber',
'type' => 'int',
),
+ 'status' => array(
+ 'table' => $this->getPrimaryTableAlias(),
+ 'column' => 'status',
+ 'type' => 'int',
+ ),
);
}
diff --git a/src/applications/project/typeahead/PhabricatorProjectDatasource.php b/src/applications/project/typeahead/PhabricatorProjectDatasource.php
--- a/src/applications/project/typeahead/PhabricatorProjectDatasource.php
+++ b/src/applications/project/typeahead/PhabricatorProjectDatasource.php
@@ -26,7 +26,8 @@
$query = id(new PhabricatorProjectQuery())
->needImages(true)
- ->needSlugs(true);
+ ->needSlugs(true)
+ ->setOrderVector(array('-status', 'id'));
if ($this->getPhase() == self::PHASE_PREFIX) {
$prefix = $this->getPrefixQuery();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 19, 12:42 PM (17 h, 2 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7020881
Default Alt Text
D19907.diff (1 KB)
Attached To
Mode
D19907: Fix sorting bug in ProjectDatasource
Attached
Detach File
Event Timeline
Log In to Comment