From 0e7729c78f7c190f78d30d6fa44725d66c2e986d Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 18 Feb 2011 21:57:34 -0800 Subject: [PATCH] Make priority the default sort and order. Summary: Test Plan: Reviewers: CC: --- .../controller/tasklist/ManiphestTaskListController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/applications/maniphest/controller/tasklist/ManiphestTaskListController.php b/src/applications/maniphest/controller/tasklist/ManiphestTaskListController.php index 18536f795f..68c0202116 100644 --- a/src/applications/maniphest/controller/tasklist/ManiphestTaskListController.php +++ b/src/applications/maniphest/controller/tasklist/ManiphestTaskListController.php @@ -337,14 +337,14 @@ class ManiphestTaskListController extends ManiphestController { 'p' => 'priority', ); if (empty($orders[$order])) { - $order = 'u'; + $order = 'p'; } $order_by = $orders[$order]; $order_names = array( + 'Priority' => 'p', 'Updated' => 'u', 'Created' => 'c', - 'Priority' => 'p', ); $uri = $request->getRequestURI(); @@ -382,15 +382,15 @@ class ManiphestTaskListController extends ManiphestController { 'o' => 'owner', ); if (empty($groups[$group])) { - $group = 'n'; + $group = 'p'; } $group_by = $groups[$group]; $group_names = array( - 'None' => 'n', 'Priority' => 'p', 'Owner' => 'o', 'Status' => 's', + 'None' => 'n', ); $uri = $request->getRequestURI();