diff options
Diffstat (limited to 'app/Model/TaskLink.php')
-rw-r--r-- | app/Model/TaskLink.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/TaskLink.php b/app/Model/TaskLink.php index 435bd0e5..a89e6ca3 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(); } |