Title: Sorting by date error
Last modified: March 30, 2023

---

# Sorting by date error

 *  Resolved [tomulivieri](https://wordpress.org/support/users/tomulivieri/)
 * (@tomulivieri)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/sorting-by-date-error/)
 * Hello,
   I am trying to set the sorting by document publication date, but the sorting
   remains by field name.
 * I read the documentation and it seems to me that the shortcode is correct. I 
   reproduce it here.
 *     ```wp-block-code
       [wpdm_all_packages thumb=1 items_per_page="5" categories="review-press" jstable=1 order_by="date" order="desc" cols="title,file_count,download_count|publish_date|download_link" colheads="Title|Upload date |Download::155px"]
       ```
   
 * Can you help me figure out how to fix it?
 * Thank you
 * Translated with [http://www.DeepL.com/Translator](http://www.DeepL.com/Translator)(
   free version)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/sorting-by-date-error/#post-16617970)
 * Hi [@tomulivieri](https://wordpress.org/support/users/tomulivieri/)
 * Thank you for writing to us.
 * Can you please try with the **order=”DESC”** parameter instead to check whether
   it’s working or not?
 * I have tested using your reffered shortcode and it worked well: [https://www.loom.com/share/ef4cc096198f45548a187567089292b2](https://www.loom.com/share/ef4cc096198f45548a187567089292b2)
 * Regards
 *  Thread Starter [tomulivieri](https://wordpress.org/support/users/tomulivieri/)
 * (@tomulivieri)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/sorting-by-date-error/#post-16620215)
 * Hi,
   it’s working now. The problem was related to the embed in an accordion element.
 * Thanks for the support.
 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/sorting-by-date-error/#post-16621952)
 * Hello [@tomulivieri](https://wordpress.org/support/users/tomulivieri/)
 * Glad to hear that.
 * Have a good day.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sorting by date error’ is closed to new replies.

 * ![](https://ps.w.org/download-manager/assets/icon-256x256.png?rev=1561688)
 * [Download Manager](https://wordpress.org/plugins/download-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/download-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/download-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/sorting-by-date-error/#post-16621952)
 * Status: resolved