Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -618,9 +618,9 @@ |
619 | 619 | sortfn = ts_sort_currency; |
620 | 620 | // We allow a trailing percent sign, which we just strip. This works fine |
621 | 621 | // if percents and regular numbers aren't being mixed. |
622 | | - else if (itm.match(/^[+-]?[0-9]+(\.[0-9]*)?([eE][+-]?[0-9]+)?\%?$/) || |
623 | | - itm.match(/^[+-]?\.[0-9]+([eE][+-]?[0-9]+)?\%?$/) || |
624 | | - itm.match(/^0[xX][0-9a-fA-F]+$/)) |
| 622 | + else if (itm.match(/^[+-]?[\d,]+(\.[\d,]*)?([eE][+-]?[\d,]+)?\%?$/) || |
| 623 | + itm.match(/^[+-]?\.[\d,]+([eE][+-]?[\d,]+)?\%?$/) || |
| 624 | + itm.match(/^0x[\da-f]+$/i)) |
625 | 625 | sortfn = ts_sort_numeric; |
626 | 626 | |
627 | 627 | var reverse = (span.getAttribute("sortdir") == 'down'); |