Column sort doesn't work with a grid which was created using addRow function.
It looks like function createNode called from function addRow doesn't work properly.
Code:
	var xmlstring = '<?xml version="1.0"?><Report><Row></Row></Report>';
	if (typeof ActiveXObject != "undefined") {
		var xmlobject = new ActiveXObject("MSXML.DomDocument");
		xmlobject.loadXML(xmlstring); 
	}
	else {
		var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");
	}
        dataModel.loadData(xmlobject);
	grid.render();

	/* 
	* processing cell parameters 
	* URL
	* Action
	* Text
	* add rows into grid. grid must be rendered before.
	*/
        /**/
	var newRow = new Array(fields.length);
               	for (var i = 0; i < gridData[1].length; i++){
			for (var j = 0; j < gridData.length; j++){
			if (gridData[j][i][2] == ''){gridData[j][i][2] = ''};
			if (gridData[j][i][0] == ''){
				newRow[j] = gridData[j][i][2] ;
				}
			else {
				//newRow[j] = '' + gridData[j][i][2] + '' ;
				newRow[j] = gridData[j][i][2] ;
			}
			}
			dataModel.addRow(null,newRow);
		}
	// first empty row must go away

	dataModel.removeRow(0);