Johan Idstam
11-21-2001, 06:21 AM
Hi all,
I've got this data and I'd lke to sort it on either ID or Name.
<Data>
<Row> <ID>1</ID><Name>D</Name></Row>
<Row><ID>2</ID><Name>C</Name></Row>
<Row><ID>3</ID><Name>B</Name></Row>
<Row><ID>4</ID><Name>A</Name></Row>
</Data>
I get the Row-nodes with .selectNodes("//Row") and the nodeList I get from
thas is in the order I created the xml-data, is it possible to sort it, and
if it is how do I do it?
/johan/
I've got this data and I'd lke to sort it on either ID or Name.
<Data>
<Row> <ID>1</ID><Name>D</Name></Row>
<Row><ID>2</ID><Name>C</Name></Row>
<Row><ID>3</ID><Name>B</Name></Row>
<Row><ID>4</ID><Name>A</Name></Row>
</Data>
I get the Row-nodes with .selectNodes("//Row") and the nodeList I get from
thas is in the order I created the xml-data, is it possible to sort it, and
if it is how do I do it?
/johan/