Title: Sorting in stores
Last modified: April 20, 2021

---

# Sorting in stores

 *  [guillaumerj](https://wordpress.org/support/users/guillaumerj/)
 * (@guillaumerj)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sorting-in-stores/)
 * Hello.
 * I come to you for a little help.
 * In my supplier stores, I would like to have items sorted by date (recent first).
 * Except at the present time it is the reverse.
    In the options woocommerces, everything
   is good and my pages articles do not have the problem there.
 * There is a code that exists for woocommerce:
 * add_filter(‘woocommerce_default_catalog_orderby’, ‘changer_orderby’);
    function
   changer_orderby( $sort_by ) { return ‘date’; }`
 * Such a code exists for wcfm stores?
 * Thanks for your help.

The topic ‘Sorting in stores’ is closed to new replies.

 * ![](https://ps.w.org/wc-frontend-manager/assets/icon-256x256.jpg?rev=1800818)
 * [WCFM - Frontend Manager for WooCommerce](https://wordpress.org/plugins/wc-frontend-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-frontend-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-frontend-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-frontend-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-frontend-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-frontend-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [guillaumerj](https://wordpress.org/support/users/guillaumerj/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/sorting-in-stores/)
 * Status: not resolved