Version 6.2 Released!

Click to checkout the new features

Old Documentation
You are browsing documentation for an old version of Tabulator. Consider upgrading your project to Tabulator 6.2

Upgrade Guide v4.8 to 4.9

Previous Version Upgrades

If you are upgrading from any version of tabulator below version 4.8, you should read the v4.1 to 4.8 upgrade guide first.

Sorting

Number Sorter

To improve numeric sorting efficiency ,the numeric sorter now assumes that numbers are presented in standard floating point format (eg 1234.56).

In previous versions it used to automatically remove thousand separators to accomodate a wider range of number formats (eg 1,234.56), but this adversly affected sorts on simple numbers (it took 6 times longer to sort simple numbers with string maipulation). For this reason if you are sorting formatted numbers you now need to specifcy the thousandSeparator option in the sorterParams

So where you would have simply set your formatter to number:

{title:"Cost", field:"cost", sorter:"number"}

You will now also have to set the thousandSeparator option in the sorterParams:

{title:"Cost", field:"cost", sorter:"number", sorterParams:{thousandSeparator:","}}
Donate