Add ordering comments by id along with creation

Order comments correctly when they are added on the same second.
This commit is contained in:
rafacamargo123
2018-10-24 13:31:14 -03:00
committed by fguillot
parent 755ecb0f3e
commit 8b76fa8ba0

View File

@@ -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();
}