Title: Tree View Sort
Last modified: August 31, 2016

---

# Tree View Sort

 *  Resolved [mcranson](https://wordpress.org/support/users/mcranson/)
 * (@mcranson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tree-view-sort/)
 * Using Tree View.
 * Code:
 * [wpdm_tree category=”meetings”]
 * need to sort file names Ascending. I’ve read all support and can’t seem to find
   a solution.
 * Link for example:
 * [http://.hollandhome.org/documents/tree_view.jpg](http://.hollandhome.org/documents/tree_view.jpg)
 * [https://wordpress.org/plugins/download-manager/](https://wordpress.org/plugins/download-manager/)

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

 *  Thread Starter [mcranson](https://wordpress.org/support/users/mcranson/)
 * (@mcranson)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tree-view-sort/#post-6996395)
 * Correction for example:
 * [http://resident.hollandhome.org/documents/tree_view.jpg](http://resident.hollandhome.org/documents/tree_view.jpg)
 *  Plugin Contributor [Shahriar Alam](https://wordpress.org/support/users/shahriar0822/)
 * (@shahriar0822)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/tree-view-sort/#post-6996487)
 * Sorting option not available yet in [wpdm_tree]
 *  [stimpygato](https://wordpress.org/support/users/stimpygato/)
 * (@stimpygato)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/tree-view-sort/#post-6996655)
 * Hi Shahriar,
 * Please count this as a second WPDM user who would REALLY REALLY like to sort 
   their files too.
 * **[wpdm_tree file_order=”asc”]** would be truly appreciated!
 * Thanks!
 *  [stimpygato](https://wordpress.org/support/users/stimpygato/)
 * (@stimpygato)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/tree-view-sort/#post-6996656)
 * Ok, so no response from the Plugin folks… but I wanted to share a fix that anyone
   can use to accomplish alphabetic sorts in the WPDM, because like you I simply
   can’t stop working until these guys “get around to it”.
 * **The fix requires [WPDM Extended Shortcodes](http://www.wpdownloadmanager.com/download/wpdm-extended-short-codes/)
   Plugin**
 * First, find the file wpdm-extended-shortcodes.php
    This is located in /plugins/
   wpdm-extended-shortcodes/
 * Then go to line 425, and then add the ‘order’ and ‘orderby’ lines so that it 
   looks like so: (You could also use DESC instead of ASC obviously)
 *     ```
       $params = array(
                   'post_type' => 'wpdmpro',
                   'posts_per_page' => 9999,
                   'order' => 'ASC',
                   'orderby' => 'name'
               );
       ```
   
 * I hope this helps others! This should really be baked-in functionality in their“
   Pro” plugin IMHO. 😉
 *  Plugin Author [Shahjada](https://wordpress.org/support/users/codename065/)
 * (@codename065)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/tree-view-sort/#post-6996658)
 * WPDM Extended Shortcodes is free and when the feature will be available it will
   be available as free.
 *  [kevllar](https://wordpress.org/support/users/kevllar/)
 * (@kevllar)
 * [10 years ago](https://wordpress.org/support/topic/tree-view-sort/#post-6996670)
 * Any progress on this change?
 * I tried this shortcode but no luck.
 *  [wpdm_tree order_by=”title” order=”desc”]
 *  [mhenry01](https://wordpress.org/support/users/mhenry01/)
 * (@mhenry01)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/tree-view-sort/#post-8440445)
 * [@stimpygato](https://wordpress.org/support/users/stimpygato/), what should my
   shortcode read, [wpdm_tree category=”slug” download_link=0 order_by=”name” order
   =”asc”]? If so, no dice for me.

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

The topic ‘Tree View Sort’ 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/)

 * 7 replies
 * 6 participants
 * Last reply from: [mhenry01](https://wordpress.org/support/users/mhenry01/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/tree-view-sort/#post-8440445)
 * Status: resolved