revogrid icon indicating copy to clipboard operation
revogrid copied to clipboard

how to Sort a numeric column using cellCompare??

Open getmonyinfo opened this issue 3 years ago • 3 comments

cellCompare sorting numberic column seems not working as excepted.

https://codesandbox.io/s/dfgsdfssdf-forked-fyfxb?file=/src/App.vue:1364-1375

getmonyinfo avatar Oct 06 '21 14:10 getmonyinfo

Your example is using vue-datagrid version 3.0.9 as dependency, custom sorting is supported from version 3.0.97 on.

wglas85 avatar Oct 24 '21 18:10 wglas85

I just opened the example and switched to version 3.0.97+. The sorting still is off:

  • 1
  • 11.1
  • 2.1
  • 3
  • 4
  • 6
  • 7

Seems like sorting only applies to the first "char" here?

franz-josef-kaiser avatar Dec 01 '21 23:12 franz-josef-kaiser

I'm using 3.2.8 and I can't get cellCompare to work at all either with vue 2

eddie-englund avatar May 03 '23 11:05 eddie-englund