Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -606,17 +606,17 @@ |
607 | 607 | } |
608 | 608 | } |
609 | 609 | |
610 | | - sortfn = ts_sort_caseinsensitive; |
| 610 | + var sortfn = ts_sort_caseinsensitive; |
611 | 611 | if (itm.match(/^\d\d[\/. -][a-zA-Z]{3}[\/. -]\d\d\d\d$/)) |
612 | 612 | sortfn = ts_sort_date; |
613 | | - if (itm.match(/^\d\d[\/.-]\d\d[\/.-]\d\d\d\d$/)) |
| 613 | + else if (itm.match(/^\d\d[\/.-]\d\d[\/.-]\d\d\d\d$/)) |
614 | 614 | sortfn = ts_sort_date; |
615 | | - if (itm.match(/^\d\d[\/.-]\d\d[\/.-]\d\d$/)) |
| 615 | + else if (itm.match(/^\d\d[\/.-]\d\d[\/.-]\d\d$/)) |
616 | 616 | sortfn = ts_sort_date; |
617 | 617 | // pound dollar euro yen currency cents |
618 | | - if (itm.match(/(^[\u00a3$\u20ac\u00a4\u00a5]|\u00a2$)/)) |
| 618 | + else if (itm.match(/(^[\u00a3$\u20ac\u00a4\u00a5]|\u00a2$)/)) |
619 | 619 | sortfn = ts_sort_currency; |
620 | | - if (itm.match(/^[\d.,eE+-]+\%?$/)) |
| 620 | + else if (itm.match(/^[\d.,eE+-]+\%?$/)) |
621 | 621 | sortfn = ts_sort_numeric; |
622 | 622 | |
623 | 623 | var reverse = (span.getAttribute("sortdir") == 'down'); |