Title: Sorting order
Last modified: February 8, 2023

---

# Sorting order

 *  [havemaskwilltravel](https://wordpress.org/support/users/havemaskwilltravel/)
 * (@havemaskwilltravel)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/sorting-order-5/)
 * The order in which related posts are shown is random, which is defined in includes/
   class-at-related-posts.php by ‘orderby’ => ‘rand’
   I’ve changed the order to date
   + descending:‘orderby’ => ‘date’,‘order’ => ‘DESC’It does the job, but is there
   a smarter way to adjust this? If the plugin is being updated, my change(s) will
   be overwritten.

The topic ‘Sorting order’ is closed to new replies.

 * ![](https://ps.w.org/related-posts-flatsome/assets/icon-256x256.png?rev=2771090)
 * [Related Posts Flatsome](https://wordpress.org/plugins/related-posts-flatsome/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/related-posts-flatsome/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/related-posts-flatsome/)
 * [Active Topics](https://wordpress.org/support/plugin/related-posts-flatsome/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/related-posts-flatsome/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/related-posts-flatsome/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [havemaskwilltravel](https://wordpress.org/support/users/havemaskwilltravel/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/sorting-order-5/)
 * Status: not resolved