Technical support This forum is closed.
Version 1.x > Technical support > Sort order of documents in tree-view? View modes: 
User avatar
Member
Member
rgillen - 6/26/2006 6:25:49 PM
   
Sort order of documents in tree-view?
I've got a regular page item which serves as the root for roughly 600 documents directly underneath it. The tree view in the content tab displays the first 50 items sorted alphbetically A-Z. Is there any configuration value I can set to reverse the sort (Z-A)?

User avatar
Member
Member
rgillen - 6/26/2006 11:22:58 PM
   
Re: Sort order of documents in tree-view?
so, I found *a* solution to this problem by changing editing the file /cmsdesk/content/treedata.aspx.cs...

changing line #321 from:
nodeRows = tree.SelectNodes( Value + "/%", TreePathTypeEnum.IDPath, "", "", "", 1 ).Tables[ 0 ].Rows;

to:
nodeRows = tree.SelectNodes( Value + "/%", TreePathTypeEnum.IDPath, "", "", "NodeName DESC", 1 ).Tables[ 0 ].Rows;

*fixes* the problem, however it seems messy to be tweaking the CMSDesk files this much... is there a better/more-supported way?

User avatar
Guest
admin - 6/27/2006 5:26:29 PM
   
Re: Sort order of documents in tree-view?
Hi Rob,

Thank you for your message. Unfortunately, there's no better way in the current version. In version 2.0, you will be able to set the default order of each item in the listing either using up/down button or using the "Sort A-Z" and "Sort Z-A" menu command - however, this will be applied only once a time (not dynamically).

Best Regards,