[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Special Sort order

Subject: Special Sort order
From: "Alexandre Moraes" <alexmoraes@xxxxxxxxx>
Date: Thu, 8 May 2008 09:30:02 -0300
 Special Sort order
Hi everybody, I4m 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.