rem: allspans[ci].innerHTML = '&nbsp;&nbsp;&nbsp;'; 
add: allspans[ci].innerHTML = '<img src="'+img_dir+'none.gif"/>'; 
context: function ts_resortTable(lnk) {    // get the span    var span;    for (var ci=0;ci<lnk.childNodes.length;ci++) {        if (lnk.childNodes[ci].tagName && lnk.childNodes[ci].tagName.toLowerCase() == 'span') span = lnk.childNodes[ci];    }    var spantext = ts_getInnerText(span);    var td = lnk.parentNode;    var column = td.cellIndex;    var table = getParent(td,'TABLE');    // Work out a type for the column    if (table.rows.length <= 1) return;    var itm = ts_getInnerText(table.rows[1].cells[column]);    sortfn = ts_sort_caseinsensitive;    if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d\d\d$/)) sortfn = ts_sort_date;    if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d$/)) sortfn = ts_sort_date;    if (itm.match(/^[$]/)) sortfn = ts_sort_currency;    if (itm.match(/^[\d\.]+$/)) sortfn = ts_sort_numeric;    SORT_COLUMN_INDEX = column;    var firstRow = new Array();    var newRows = new Array();    for (i=0;i<table.rows[0].length;i++) { firstRow[i] = table.rows[0][i]; }    for (j=1;j<table.rows.length;j++) { newRows[j-1] = table.rows[j]; }    newRows.sort(sortfn);    if (span.getAttribute("sortdir") == 'down') {        ARROW = '<img src="'+img_dir+'down.gif"/>';        newRows.reverse();        span.setAttribute('sortdir','up');    } else {        ARROW = '<img src="'+img_dir+'up.gif"/>';        span.setAttribute('sortdir','down');    }    // We appendChild rows that already exist to the tbody, so it moves them rather than creating new ones    // don't do sortbottom rows    for (i=0;i<newRows.length;i++) { if (!newRows[i].className || (newRows[i].className && (newRows[i].className.indexOf('sortbottom') == -1))) table.tBodies[0].appendChild(newRows[i]);}    // do sortbottom rows only    for (i=0;i<newRows.length;i++) { if (newRows[i].className && (newRows[i].className.indexOf('sortbottom') != -1)) table.tBodies[0].appendChild(newRows[i]);}    // Delete any other arrows there may be showing    var allspans = document.getElementsByTagName("span");    for (var ci=0;ci<allspans.length;ci++) {        if (allspans[ci].className == 'sortarrow') {            if (getParent(allspans[ci],"table") == getParent(lnk,"table")) { // in the same table as us?                allspans[ci].innerHTML = '&nbsp;&nbsp;&nbsp;';            }        }    }    span.innerHTML = ARROW;}
meta: 834	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/834/c30f0d626f43445a9f31d26e4e0645f4a335663c/sorttable.js/buggy/src/edu/sc/seis/sod/data/templates/sorttable.js