diff options
author | rafacamargo123 <rafacamargo123@gmail.com> | 2018-10-24 13:31:14 -0300 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2018-10-25 18:18:02 -0700 |
commit | 8b76fa8ba03f7e7bac685426af736bd612ef516c (patch) | |
tree | a165a3561b17852ea1b0a1b0d717953682c1319d /app/Model | |
parent | 755ecb0f3e06af5710ec73dd957c6654d5d89cc4 (diff) |
Add ordering comments by id along with creation
Order comments correctly when they are added on the same second.
Diffstat (limited to 'app/Model')
-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(); } |