aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/items.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index e4aff1172..4eda9a221 100644
--- a/include/items.php
+++ b/include/items.php
@@ -5604,7 +5604,7 @@ function items_by_thr_parent(string $mid, int $parent, int|null $offset = null):
$order_sql = "ORDER BY item.created";
if (isset($offset)) {
- $order_sql = "ORDER BY item.created DESC LIMIT 3 OFFSET $offset";
+ $order_sql = "ORDER BY item.created DESC, item.received DESC LIMIT 3 OFFSET $offset";
}
$owner_uid = intval($parent_item[0]['uid']);