Datatable: Sort mode multiple - undefined breaks order #4555
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
Hi, I think I've found a bug using the multiple sort-mode.
When a value is undefined into the list, the sorting is broken.
You can see the reproduction here where the third row has an
undefined
quantity. If you sort by quantity, the order is not good, the row with theundefined
value should be at the top or a the bottom of the list.Reproducer
https://codesandbox.io/s/primevue-demo-forked-lv8klr?file=/src/App.vue
PrimeVue version
3.35.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The row with the
undefined
value should be at the top or a the bottom of the list.The text was updated successfully, but these errors were encountered: