title: sort the node data alphabetical order using xslt1.0
body: <p>I would like to disply state and country names in alphabetical order. 
      If there are any county1 node assosiated with state I need to display all 
      states with in the counry name.however if there is no state that starts with
      a certain alphabet like say "X" then it shouldn't show an empty .
      I'm pretty sure this is possible with xslt but have no idea how to go about doing it. 
      So you gurus out there, pleeeeeeease help me.I am using visaul stuido2010 xml editor and xslt1.0..
      I have no way to change the xslt version..I got struck here..</p>
  
  <pre><code>My Input xml Looka like below : 
       &lt;?xml version="1.0" encoding="utf-8" ?&gt;
          &lt;countries&gt;
           &lt;country&gt;
              &lt;state&gt;Ontario&lt;/state&gt;
              &lt;country1&gt;CANADA&lt;/country1&gt;
            &lt;/country&gt;
            &lt;country&gt;
              &lt;state&gt;Swindon&lt;/state&gt;
            &lt;/country&gt;
            &lt;country&gt;
              &lt;state&gt;CAMDEN&lt;/state&gt;
            &lt;/country&gt;
            &lt;country&gt;
              &lt;state&gt;NJ&lt;/state&gt;
              &lt;country1&gt;America&lt;/country1&gt;
            &lt;/country&gt;
            &lt;country&gt;
             &lt;state&gt;NJ&lt;/state&gt;
              &lt;country1&gt;America&lt;/country1&gt;
             &lt;/country&gt;
            &lt;country&gt;
              &lt;state&gt;NY&lt;/state&gt;
              &lt;country1&gt;America&lt;/country1&gt;
             &lt;/country&gt;
            &lt;country&gt;
               &lt;state&gt;DE&lt;/state&gt;
              &lt;country1&gt;America&lt;/country1&gt;
            &lt;/country&gt;
            &lt;country&gt;
              &lt;state&gt;Queenland&lt;/state&gt;
              &lt;country1&gt;Australia&lt;/country1&gt;
            &lt;/country&gt;
            &lt;country&gt;
              &lt;state&gt;APstate&lt;/state&gt;
            &lt;/country&gt;
            &lt;country&gt;
              &lt;state&gt;ANstate&lt;/state&gt;
            &lt;/country&gt;
          &lt;/countries&gt;
  </code></pre>
  
  <p>My output looks like as below :</p>
  
  <pre><code>A
  America
    - DE
    - NJ
    - NY
  ANstate
  APstate
  Australia
    -Queenland
  C
  CAMDEN
  CANADA
    -Ontario
  S
  Swindon
  </code></pre>