mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- AWC-1089: Nodes in tree should be ordered alphabetically
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5016 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -22,6 +22,8 @@ import org.alfresco.web.bean.BrowseBean;
|
||||
import org.alfresco.web.bean.NavigationBean;
|
||||
import org.alfresco.web.bean.ajax.NavigatorPluginBean;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
import org.alfresco.web.data.IDataContainer;
|
||||
import org.alfresco.web.data.QuickSort;
|
||||
import org.alfresco.web.ui.common.Utils;
|
||||
import org.alfresco.web.ui.common.component.SelfRenderingComponent;
|
||||
import org.alfresco.web.ui.repo.component.UITree.TreeNode;
|
||||
@@ -220,6 +222,13 @@ public class UINavigator extends SelfRenderingComponent
|
||||
areaTitle = Application.getMessage(context, NavigationBean.MSG_MYALFRESCO);
|
||||
}
|
||||
|
||||
// order the root nodes by the tree label
|
||||
if (rootNodesForArea != null && rootNodesForArea.size() > 1)
|
||||
{
|
||||
QuickSort sorter = new QuickSort(rootNodesForArea, "name", true, IDataContainer.SORT_CASEINSENSITIVE);
|
||||
sorter.sort();
|
||||
}
|
||||
|
||||
// main container div
|
||||
out.write("<div id=\"navigator\" class=\"navigator\">");
|
||||
|
||||
|
Reference in New Issue
Block a user