title: XSLT Custom Sorting using XSLT 1.0
body: <p>This is a sample from an XML document.</p>
  
  <pre><code>&lt;A&gt;
    &lt;Value&gt;B2.B1-1.C2-0.D20&lt;/Value&gt;
  &lt;/A&gt;
  &lt;A&gt;
    &lt;Value&gt;A2.B15-1.C2-0.D20&lt;/Value&gt;
  &lt;/A&gt;
  &lt;A&gt;
    &lt;Value&gt;A2.B2-1.C2-0.D20&lt;/Value&gt;
  &lt;/A&gt;
  </code></pre>
  
  <p>and so on.</p>
  
  <p>I need to sort this to look like</p>
  
  <p>A2.B2-1.C2-0.D20
  A2.B15-1.C2-0.D20
  B2.B1-1.C2-0.D20</p>
  
  <p>The number of dot separated components are not known and the numbers in them can be in any format (1-1,11,11abcd). The sorting is intuitive as one would normally expect. First it is based on letters and the numbers are bunched together and read (B2 and B15 is the correct order. The lexical order B15 , B2 is not correct)</p>
  
  <p>Can this be done with XSLT 1.0 ?</p>