I was hoping someone might be able to help me with a sort problem. I
would like to sort on a presorted node in the same stylesheet.
I would like to sort this (NOTE: brands may overlap):
<document>
<brands>
<brand>Brand F</brand>
<brand>Brand E</brand>
</brands>
</document>
<document>
<brands>
<brand>Brand B</brand>
<brand>Brand A</brand>
</brands>
</document>
<document>
<brands>
<brand>Brand C</brand>
<brand>Brand D</brand>
</brands>
</document>
<document>
<brands>
<brand>Brand C</brand>
<brand>Brand A</brand>
</brands>
</document>
Into this:
<document>
<brands>
<brand>Brand A</brand>
<brand>Brand B</brand>
</brands>
</document>
<document>
<brands>
<brand>Brand A</brand>
<brand>Brand C</brand>
</brands>
</document>
<document>
<brands>
<brand>Brand C</brand>
<brand>Brand D</brand>
</brands>
</document>
<document>
<brands>
<brand>Brand E</brand>
<brand>Brand F</brand>
</brands>
</document>
Any ideas would be greatly appreciated.
|