This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When you create DTD for an XML document, it is put behind the document in the tree. But it should alphabetically sorted. It may cause problem for automated tests. To reproduce: - create a java project - create an XML file from template (let's say A.xml) - from popup call "Generate DTD" item - le the same fila name in the select dialog and confirm it - newly created A.dtd is placed behind A.xml in the tree in the projects view. But it should be first. Order of nodes is changed when you add a new XML file or sometimes automatically after a random amount of time. Build 20040712-1258, JDK1.5.0-b56, WindowsXP.
I don't think that this is problem of the XML module. The parent node should take care about sorting of its children. So I reassign this issue to the core team. I play with this and if you set Sort Mode for the parent node to "By Name", then the sorting is right, but if you set "By name (Packages First), then the sorting is wrong.
I have the feeling sorting is based on Node names which in turn don't include extensions but I may be wrong
Loaders (FolderChidren) are responsible for creating the set of children.
Fixed in: Checking in src/org/openide/loaders/FolderComparator.java new revision: 1.6; previous revision: 1.5
Verified in build 20040824-0659.