Sorting table with non-english characters #14023
-
Hello, I am having trouble getting a custom sorting going on the sortable tables. Instead of sorting the non-english characters in place, it pushes them to the end of the list. I tried to use custom-sort hoping to change anything without luck. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Please provide a Codepen for someone to be able to take a deeper dive and provide a better support. |
Beta Was this translation helpful? Give feedback.
-
Hi: country.sort = (a, b) => a.localeCompare(b, 'es', { sensitivity: 'base' }) |
Beta Was this translation helpful? Give feedback.
Hi:
If field is country for example, add .sort in columns definition:
country.sort = (a, b) => a.localeCompare(b, 'es', { sensitivity: 'base' })