sortValue is a great helper, but not enogh in my case. Please see https://jsfiddle.net/ntodorov/3zaw3hdr/
The gist of it - if you have a column with values like paragraph numbers:
just giving formated option does not cut it. Better to say I do not see it working with different dot levels that need to be compared. One could have 0 dots the other 5, meaning the comparator needs to compare level by level.
In my jsfiddle the issue is visible and my comparator there sorts perfectly, but I cannot attach it to the column. If you click on the title, it ignores the custom comparator of the collection and creates internal that sorts as a string and that's not the desired order.
Is it possible to expose a property for comparator?
sortValue is a great helper, but not enogh in my case. Please see https://jsfiddle.net/ntodorov/3zaw3hdr/ The gist of it - if you have a column with values like paragraph numbers:
just giving formated option does not cut it. Better to say I do not see it working with different dot levels that need to be compared. One could have 0 dots the other 5, meaning the comparator needs to compare level by level.
In my jsfiddle the issue is visible and my comparator there sorts perfectly, but I cannot attach it to the column. If you click on the title, it ignores the custom comparator of the collection and creates internal that sorts as a string and that's not the desired order.
Is it possible to expose a property for comparator?
Thanks, Nik