diff --git a/app/Model/CommentModel.php b/app/Model/CommentModel.php index ff8d65369..fe43a157e 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(); }