xsl-list
[Top] [All Lists]

[xsl] Special Sort order

2008-05-08 05:30:34
Hi everybody, I´m having a problem here.

I would like to sort my XML in a different way.
I have this XML.

 <NLIST>
    <NITEM>
      <PNR>AN4</PNR>
    </NITEM>
     <NITEM>
      <PNR>A0B</PNR>
    </NITEM>
    <NITEM>
      <PNR>291300A</PNR>
    </NITEM>
    <NITEM>
      <PNR>CCR244SS-3-2</PNR>
    </NITEM>
    <NITEM>
      <PNR>7028590-901</PNR>
    </NITEM>
     <NITEM>
      <PNR>MS20995C20</PNR>
    </NITEM>
  </NLIST>

And I need to sort it in a ascendant order but I need that the letters
come first than numbers. Like this:
 <NLIST>
    <NITEM>
      <PNR>AN4</PNR>
    </NITEM>
     <NITEM>
      <PNR>A0B</PNR>
    </NITEM>
    <NITEM>
      <PNR>CCR244SS-3-2</PNR>
    </NITEM>
    <NITEM>
      <PNR>MS20995C20</PNR>
    </NITEM>
    <NITEM>
      <PNR>291300A</PNR>
    </NITEM>
    <NITEM>
      <PNR>7028590-901</PNR>
    </NITEM>
  </NLIST>

Is there a way to solve this?

Thanks

Alexandre

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>