rem: this.arr.cssClasses.push(rows[row].getAttribute('class')); 
add: this.arr.cssClasses.push(rows[row].className); 
context: TableRowDataArray = function(id){	this.arr = new Array();	this.arr.table = document.getElementById(id);	this.arr.cssClasses = new Array();	var tbody = this.arr.table.tBodies[0];	var rows = tbody.rows;	for (var row = 0; row < rows.length; row++)	{		this.arr.cssClasses.push(rows[row].getAttribute('class'));		var cells = rows[row].cells;		var cellTextArray = new Array();		for (var j = 0; j < cells.length; j++)			cellTextArray.push(cells[j].innerHTML);		this.arr.push(new TableRowData(cellTextArray));	}	this.arr.rebuildTable = function()	{		var tbody = this.table.tBodies[0];		var mybody = tbody.cloneNode(false);		for (var row = 0; row < this.length; row++)		{			var tr = document.createElement("tr");			tr.setAttribute('class', this.cssClasses[row]);			for (var i = 0; i < this[row].cols.length; i++)			{				var td = document.createElement("td");				td.innerHTML = this[row].cols[i];				tr.appendChild(td);			}			mybody.appendChild(tr);		}		this.table.replaceChild(mybody, tbody);	}	this.arr.setSortCol = function(sortCol)	{		for(var i = 0; i < this.length; i++)		{			this[i].setSortCol(sortCol);		}	}	return this.arr;}
meta: 1856	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1856/e74df520dd8704961c6ad02078f10a6f973cf91e/clientSideSort.js/buggy/extra/javascript/clientSideSort.js