mirror of
https://github.com/phpbb/phpbb.git
synced 2025-10-04 11:41:38 +02:00
[ticket/12966] Sort by post_time and post_id where applicable
This change was not applied to the search as this would require a larger rewrite of the search methods. PHPBB3-12966
This commit is contained in:
@@ -94,7 +94,7 @@ if ($view && !$post_id)
|
||||
AND " . $phpbb_content_visibility->get_visibility_sql('post', $forum_id) . "
|
||||
AND post_time > $topic_last_read
|
||||
AND forum_id = $forum_id
|
||||
ORDER BY post_time ASC";
|
||||
ORDER BY post_time ASC, post_id ASC";
|
||||
$result = $db->sql_query_limit($sql, 1);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
@@ -146,7 +146,7 @@ if ($view && !$post_id)
|
||||
AND topic_moved_id = 0
|
||||
AND topic_last_post_time $sql_condition {$row['topic_last_post_time']}
|
||||
AND " . $phpbb_content_visibility->get_visibility_sql('topic', $row['forum_id']) . "
|
||||
ORDER BY topic_last_post_time $sql_ordering";
|
||||
ORDER BY topic_last_post_time $sql_ordering, topic_last_post_id $sql_ordering";
|
||||
$result = $db->sql_query_limit($sql, 1);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
Reference in New Issue
Block a user