diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Model/CommentModel.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Model/CommentModel.php b/app/Model/CommentModel.php index ff8d6536..fe43a157 100644 --- a/app/Model/CommentModel.php +++ b/app/Model/CommentModel.php @@ -71,6 +71,7 @@ class CommentModel extends Base ) ->join(UserModel::TABLE, 'id', 'user_id') ->orderBy(self::TABLE.'.date_creation', $sorting) + ->orderBy(self::TABLE.'.id', $sorting) ->eq(self::TABLE.'.task_id', $task_id) ->findAll(); } |