• Resolved tajin

    (@tajin)


    I suggest modifying similar-posts.php on line 168 as follows:
    $sql .= " ORDER BY score DESC LIMIT $limit";

    to

    $sql .= " ORDER BY score DESC, post_date DESC LIMIT $limit";

    That way all identical matches (for example when you’re just comparing categories) will be sorted by post-date.

    I know the plugin already has output sorting but if you have for example 30 posts in the same category and the plugin is told to display only 5 hits, then it will always show the oldest 5.

    With this change it will be the newests ones instead which makes much more sense to me.

    • This topic was modified 5 years, 9 months ago by tajin.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sorting improvement’ is closed to new replies.