add: return this; 
context: TableSorter = function(id, dateParser){	this.id = id;	this.table = document.getElementById(id);	this.activeSort = null;	this.dateParser = dateParser;	this.getSortDirection = function(sortCol)	{		if (this.activeSort == null || this.activeSort.column != sortCol)			this.activeSort = new SortReference(sortCol, "asc");		else		{			if (this.activeSort.direction == "asc")				this.activeSort.direction = "dsc";			else				this.activeSort.direction = "asc";		}		return this.activeSort.direction;	}	this.sort = function(sortCol, datatype)	{		var rowDataArray = new TableRowDataArray(this.id);		rowDataArray.setSortCol(sortCol);		var direction = this.getSortDirection(sortCol);		if (datatype == 'number')			rowDataArray.sort(new NumericComparator());		else if (datatype == 'date')			rowDataArray.sort(new DateComparator(this.dateParser));		else			rowDataArray.sort();		if (direction == "dsc")			rowDataArray.reverse();		rowDataArray.rebuildTable();	}}
meta: 4156	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4156/e74df520dd8704961c6ad02078f10a6f973cf91e/clientSideSort.js/buggy/extra/javascript/clientSideSort.js