var arrowHTML;
if (reverse) {
- arrowHTML = '<img src="'+ ts_image_path + ts_image_down + '" alt="↓"/>';
- newRows.reverse();
- span.setAttribute('sortdir','up');
+ arrowHTML = '<img src="'+ ts_image_path + ts_image_down + '" alt="↓"/>';
+ newRows.reverse();
+ span.setAttribute('sortdir','up');
} else {
- arrowHTML = '<img src="'+ ts_image_path + ts_image_up + '" alt="↑"/>';
- span.setAttribute('sortdir','down');
+ arrowHTML = '<img src="'+ ts_image_path + ts_image_up + '" alt="↑"/>';
+ span.setAttribute('sortdir','down');
}
// We appendChild rows that already exist to the tbody, so it moves them rather than creating new ones