MediaWiki:Monaco.js

/* //////////////////////////////////////////////////////////////////// // SORTS THE FIRST SORTABLE TABLE BY THE SECOND COLUMN ////////////////////////////////////////////////////////////////////

sortables_init; // sort the first sortable table; change [0] to sort other tables. tab = document.getElementsByTagName("table")[0]; // sort by the first column; change [0] to sort by other columns. hdr = tab.getElementsByTagName("th")[1]; // get the sort button link lnk = hdr.getElementsByTagName("a")[0]; ts_resortTable(lnk);