function SortTable(sTableID, iCol, sDataType){
=(sTableID);
=[0];
=;
=[];
=iCol;
=sDataType;
}
={
convert:function(sValue, sDataType){
switch(sDataType){
case "int":
return parseInt(sValue);
case "float":
return parseFloat(sValue);
case "date":
return new Date(sValue);
default:
return ();
}
},
generateCompareTRs:function(iCol, sDataType, that){
return function compareTRs(oTR1,oTR2){
var vValue1= ([iCol]., sDataType),
vValue2= ([iCol]., sDataType);
if(vValue1 < vValue2){
return -1;
} else if(vValue1 > vValue2){
return 1;
} else{
return 0;
}
};
},
sort:function(){
for(var i=0,l=;i<l;i++){
([i]);
}
if( === ){
();
} else {
((, , this));
}
var oFragment=();
for(var i=0,l=;i<l;i++){
([i]);
}
(oFragment);
= ;
}
}