Open Unstriped opened 1 year ago
When having a dataset with a mix of Strings and Numbers the columns does not sort the column properly. Any Number element that is after to a String element will not be sorted.
A workaround is to convert all numbers to strings.
https://codesandbox.io/s/primevue-demo-forked-nw2fzj?file=/src/App.vue
3.30.0
3.x
ALL
Vite
No response
Go to the codesandbox link and sort by quantity. Notice how 24 remains at the top no matter how it is sorted.
Expected result is for the column to be numerically sorted with the string either at the top or bottom.
Not sure if it is related, but I just found that I can't sort any other column with text field, if I have column with Date active.
Describe the bug
When having a dataset with a mix of Strings and Numbers the columns does not sort the column properly. Any Number element that is after to a String element will not be sorted.
A workaround is to convert all numbers to strings.
Reproducer
https://codesandbox.io/s/primevue-demo-forked-nw2fzj?file=/src/App.vue
PrimeVue version
3.30.0
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Go to the codesandbox link and sort by quantity. Notice how 24 remains at the top no matter how it is sorted.
Expected behavior
Expected result is for the column to be numerically sorted with the string either at the top or bottom.