Allow defined type property for the column
The table, when it doesn't explicitly know the data type of a column, defaults to sorting its values as strings. This causes numbers to sort incorrectly (e.g., '10' appears before '2'). For proper numerical or date sorting, the table requires either a defined type property for the column (e.g., type: 'number') or a custom sort function that understands how to compare the specific data type.
3
votes