Add ordering comments by id along with creation
Order comments correctly when they are added on the same second.
This commit is contained in:
@@ -71,6 +71,7 @@ class CommentModel extends Base
|
|||||||
)
|
)
|
||||||
->join(UserModel::TABLE, 'id', 'user_id')
|
->join(UserModel::TABLE, 'id', 'user_id')
|
||||||
->orderBy(self::TABLE.'.date_creation', $sorting)
|
->orderBy(self::TABLE.'.date_creation', $sorting)
|
||||||
|
->orderBy(self::TABLE.'.id', $sorting)
|
||||||
->eq(self::TABLE.'.task_id', $task_id)
|
->eq(self::TABLE.'.task_id', $task_id)
|
||||||
->findAll();
|
->findAll();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user