Add ordering comments by id along with creation
Order comments correctly when they are added on the same second.
This commit is contained in:
parent
755ecb0f3e
commit
8b76fa8ba0
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue