This project is read-only.
1
Vote

Namespace type list not sorted properly

description

The namespace type listing doesn't seem to be sorted properly if there are any nested classes. For example, if a namespace includes classes A, B, and A.Z, B.Y then the classes are listed in this order:
 
A
B
B.Y
A.Z
 
They should be in this order:
 
A
A.Z
B
B.Y
 
I see this problem in the hana presentation style. I suspect it may be an issue in the other styles as well. In the hana style, the problem seems to be with these lines:
 
      <xsl:apply-templates select="element" mode="namespace">
        <xsl:sort select="apidata/@name" />
      </xsl:apply-templates>
 
It's using the short type name to sort the namespace elements. For my project I changed it to this:
 
      <xsl:apply-templates select="element" mode="namespace">
        <xsl:sort select="#id" />
      </xsl:apply-templates>
 
This works for me since I only have classes. If you had other data types, like enumerations, it would sort first by data type and then by full type name.

comments

EWoodruff wrote Jun 3, 2008 at 9:36 PM

I know this was an issue in an earlier releases but it got fixed. I just tried it on one one of my example projects and the nested classes sorted correctly in all three styles. Are you using the May 2008 release?

wrote Feb 22, 2013 at 1:40 AM