rem: a1 = a_content.substring(0,a_content.indexOf('%')); b1 = b_content.substring(0,b_content.indexOf('%')); 
add: ap = a_content.indexOf('%'); bp = b_content.indexOf('%'); if (ap == -1 && bp == -1) return 0; if (ap == -1 && bp != -1) return -1; if (ap != -1 && bp == -1) return 1; a1 = a_content.substring(0,ap); b1 = b_content.substring(0,bp); 
context: function ts_sort_percent(a,b) {    a_content = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]);	b_content = ts_getInnerText(b.cells[SORT_COLUMN_INDEX]);	if (a_content.match(/N\/A/) && b_content.match(/N\/A/)) return 0;	if (a_content.match(/N\/A/) && !b_content.match(/N\/A/)) return -1;	if (!a_content.match(/N\/A/) && b_content.match(/N\/A/)) return 1;	a1 = a_content.substring(0,a_content.indexOf('%'));	b1 = b_content.substring(0,b_content.indexOf('%'));    aa = parseFloat(a1.replace(/[^0-9.]/g,''));    bb = parseFloat(b1.replace(/[^0-9.]/g,''));	return aa-bb;}
meta: 9258	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9258/b85e5584d5cfc45cedb98a0df1225102fee21679/sorttable.js/buggy/trunk/html/js/sorttable.js