Home | History | Annotate | Download | only in preload

Lines Matching defs:sorttable

2   SortTable
5 Stuart Langridge, http://www.kryogenix.org/code/browser/sorttable/
9 Add <script src="sorttable.js"></script> to your HTML
21 sorttable = {
32 sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/;
36 sorttable.makeSortable(table);
55 // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as
84 if (mtch && typeof sorttable["sort_"+override] == 'function') {
85 headrow[i].sorttable_sortfunction = sorttable["sort_"+override];
87 headrow[i].sorttable_sortfunction = sorttable.guessType(table,i);
97 sorttable.reverse(this.sorttable_tbody);
110 sorttable.reverse(this.sorttable_tbody);
148 row_array[row_array.length] = [sorttable.getInnerText(rows[j].cells[col]), rows[j]];
151 //sorttable.shaker_sort(row_array, this.sorttable_sortfunction);
168 sortfn = sorttable.sort_alpha;
170 text = sorttable.getInnerText(table.tBodies[0].rows[i].cells[column]);
173 return sorttable.sort_numeric;
178 possdate = text.match(sorttable.DATE_RE)
185 return sorttable.sort_ddmm;
187 return sorttable.sort_mmdd;
191 sortfn = sorttable.sort_ddmm;
202 // this is *not* a generic getInnerText function; it's special to sorttable.
234 innerText += sorttable.getInnerText(node.childNodes[i]);
272 mtch = a[0].match(sorttable.DATE_RE);
277 mtch = b[0].match(sorttable.DATE_RE);
287 mtch = a[0].match(sorttable.DATE_RE);
292 mtch = b[0].match(sorttable.DATE_RE);
342 document.addEventListener("DOMContentLoaded", sorttable.init, false);
352 sorttable.init(); // call the onload handler
361 sorttable.init(); // call the onload handler
367 window.onload = sorttable.init;