@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a 'title' sort option to Maniphest

Summary:
Allow sorting tasks by title in addition to priority, updated,
created.

Test Plan:
Load Maniphest, click between order buttons, note that tasks
are being ordered correctly, as if by magic.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T1592

Differential Revision: https://secure.phabricator.com/D3137

+8
+5
src/applications/maniphest/ManiphestTaskQuery.php
··· 59 59 const ORDER_PRIORITY = 'order-priority'; 60 60 const ORDER_CREATED = 'order-created'; 61 61 const ORDER_MODIFIED = 'order-modified'; 62 + const ORDER_TITLE = 'order-title'; 62 63 63 64 private $limit = null; 64 65 const DEFAULT_PAGE_SIZE = 1000; ··· 505 506 case self::ORDER_MODIFIED: 506 507 $order[] = 'dateModified'; 507 508 break; 509 + case self::ORDER_TITLE: 510 + $order[] = 'title'; 511 + break; 508 512 default: 509 513 throw new Exception("Unknown order query '{$this->orderBy}'!"); 510 514 } ··· 519 523 switch ($column) { 520 524 case 'subpriority': 521 525 case 'ownerOrdering': 526 + case 'title': 522 527 $order[$k] = "task.{$column} ASC"; 523 528 break; 524 529 default:
+3
src/applications/maniphest/controller/ManiphestTaskListController.php
··· 437 437 $order_map = array( 438 438 'priority' => ManiphestTaskQuery::ORDER_PRIORITY, 439 439 'created' => ManiphestTaskQuery::ORDER_CREATED, 440 + 'title' => ManiphestTaskQuery::ORDER_TITLE, 440 441 ); 441 442 $query->setOrderBy( 442 443 idx( ··· 796 797 'p' => 'priority', 797 798 'u' => 'updated', 798 799 'c' => 'created', 800 + 't' => 'title', 799 801 ); 800 802 } 801 803 ··· 822 824 'p' => 'Priority', 823 825 'u' => 'Updated', 824 826 'c' => 'Created', 827 + 't' => 'Title', 825 828 ); 826 829 } 827 830