var oType = 'ascending';
var sType = 'call';

function qSort(a,b){
	var aV = "";
	var bV = "";
	if (a && xml.xpSingle(a,sType)){
		aV = xml.getVAL(xml.xpSingle(a,sType)); }
	if (b && xml.xpSingle(b,sType)){
		bV = xml.getVAL(xml.xpSingle(b,sType)); }
	if (oType == 'ascending'){
		return ((aV < bV) ? 1 : ((aV > bV) ? -1 : 0)); }
	return ((aV < bV) ? -1 : ((aV > bV) ? 1 : 0));
}