User:PanSola/monobook.js

/* overwrites the original function in http://gw.gamewikis.org/skins/common/sorttable.js */ function ts_makeSortable(table) { if (table.rows && table.rows.length > 0) { if (table.tHead && table.tHead.rows.length > 0) { var firstRow = table.tHead.rows[table.tHead.rows.length-1]; thead = true; } else { var firstRow = table.rows[0]; }	}	if (!firstRow) return;

// We have a first row: assume it's the header, and make its contents clickable links for (var i=0;i  '; }	}	if (alternate_row_colors) { alternate(table); } }