example sorting: test76 numeric ascending order

basic-control-file: cmp76.xml
<?xml version="1.0" encoding="UTF-8"?>
<delivery>
	<list_person>
		<person ident_att_id="true">
			<name               cmp_text="true" />
			<firstname          cmp_text="true"  />
			<residence          cmp_text="true"  />
		</person>
	</list_person>
</delivery>


sort-control-file: sort76.xml
<?xml version='1.0' encoding='UTF-8'?>
<!--


-->
<sort>
<identity path='/delivery/list_person/person' >
    <identityfield path='/@id'                                sort='+n' />
</identity>
</sort>


explanation

The file should be sorted by attribute "id" of element <name> in numeric ascending order.

file: test76.xml
<?xml version='1.0' encoding='UTF-8'?>
<delivery>
	<list_person>
		<person id="21">
			<name>Fischer</name>
			<firstname>Werner</firstname>
			<residence>Munich</residence>
		</person>
		<person id="123">
			<name>Becker</name>
			<firstname>Petra</firstname>
			<residence>Frankfurt</residence>
		</person>
		<person id="11">
			<name>Fischer</name>
			<firstname>Ludwig</firstname>
			<residence>Frankfurt</residence>
		</person>
		<person id="4">
			<name>Bauer</name>
			<firstname>Josef</firstname>
			<residence>New York</residence>
		</person>
		<person id="61">
			<name>Fischer</name>
			<firstname>Albert</firstname>
			<residence>New York</residence>
		</person>
	</list_person>
</delivery>
sort-result on stdout
<?xml version='1.0' encoding='UTF-8'?>
<delivery>
	<list_person>
		<person id='4'>
			<name>Bauer</name><firstname>Josef</firstname><residence>New York</residence>
		</person>
		<person id='11'>
			<name>Fischer</name><firstname>Ludwig</firstname><residence>Frankfurt</residence>
		</person>
		<person id='21'>
			<name>Fischer</name><firstname>Werner</firstname><residence>Munich</residence>
		</person>
		<person id='61'>
			<name>Fischer</name><firstname>Albert</firstname><residence>New York</residence>
		</person>
		<person id='123'>
			<name>Becker</name><firstname>Petra</firstname><residence>Frankfurt</residence>
		</person>
	</list_person>
</delivery>