From c8e1617330e4960010d4101c8e8295b9311e7516 Mon Sep 17 00:00:00 2001 From: Olivier Maridat Date: Thu, 25 Jun 2015 10:55:37 +0200 Subject: Reorder task links --- app/Model/TaskLink.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model/TaskLink.php') diff --git a/app/Model/TaskLink.php b/app/Model/TaskLink.php index 251460c9..e079a664 100644 --- a/app/Model/TaskLink.php +++ b/app/Model/TaskLink.php @@ -82,7 +82,7 @@ class TaskLink extends Base ->join(Task::TABLE, 'id', 'opposite_task_id') ->join(Board::TABLE, 'id', 'column_id', Task::TABLE) ->join(User::TABLE, 'id', 'owner_id', Task::TABLE) - ->orderBy(Link::TABLE.'.id ASC, '.Board::TABLE.'.position ASC, '.Task::TABLE.'.is_active DESC, '.Task::TABLE.'.id', Table::SORT_ASC) + ->orderBy(Link::TABLE.'.id ASC, '.Board::TABLE.'.position DESC, '.Task::TABLE.'.is_active DESC, '.Task::TABLE.'.position ASC, '.Task::TABLE.'.id', Table::SORT_ASC) ->findAll(); } -- cgit v1.2.3