You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checked that there is not already a package that provides the described functionality
Description
The getCellValue function includes a parseFloat which removes any non-number after a number within a value (e.g. '123ABC' becomes '123') which means the sorting of these values is impossible.
Steps to Reproduce
Use the sortable table component and have data of different types in one column, such as number, string with number prefix, string, empty string, etc.
Sort the table using this column
Expected behaviour: If you log out the cell values, any cells with strings beginning with numbers (e.g. '123A') will have been converted to 123 because of the parseFloat used in the getCellValue function. I expect sorting to be on the entire cell value, e.g. '123A' before '123B'.
Actual behaviour: If you have multiple similar values, this means they won't sort correctly (e.g. '123A' and '123B' would just be 123 vs 123)
Prerequisites
Description
The getCellValue function includes a parseFloat which removes any non-number after a number within a value (e.g. '123ABC' becomes '123') which means the sorting of these values is impossible.
Steps to Reproduce
Expected behaviour: If you log out the cell values, any cells with strings beginning with numbers (e.g. '123A') will have been converted to 123 because of the parseFloat used in the getCellValue function. I expect sorting to be on the entire cell value, e.g. '123A' before '123B'.
Actual behaviour: If you have multiple similar values, this means they won't sort correctly (e.g. '123A' and '123B' would just be 123 vs 123)
Reproduces how often: 100%
Versions
3.3.1
OS: Mac Sequoia 15.2
Browser: chrome
The text was updated successfully, but these errors were encountered: