mirror of
https://github.com/humhub/humhub.git
synced 2025-04-22 16:11:55 +02:00
Fix test comments with same date (#5477)
This commit is contained in:
parent
073af01acc
commit
d407531ee3
@ -249,7 +249,7 @@ class Comment extends ContentAddonActiveRecord implements ContentOwner
|
||||
$query->where($objectCondition);
|
||||
$query->limit($limit);
|
||||
}
|
||||
$query->orderBy('created_at DESC');
|
||||
$query->orderBy('created_at DESC, id dESC');
|
||||
$comments = array_reverse($query->all());
|
||||
|
||||
if ($useCaching) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user