I have implemented an alphanumeric comparator but running into an performance issues. So i was wondering does anybody know about existing alphanumeric comparator which i can use along with AdvancedDataGrid... I tried assigning sortCompareFunction = myCustomCompare for every column being created. but thats not happening.
I am quite sure that i need to assign the function to sortField but i am not able to figure out exactly where that control is coming from so far i have understood using existing comparator would be nice idea instead of implementing my own...
What is the comparison function you've come up with? Maybe we can assist with the algorithm you're using since you indicate that might be the slow-down.
I tried using the alphanumeric comparator in the function given here:
I used it in an AdvancedDataGrid. The column has 3000 rows with distinct values(starting with letter and ending with numbers). It takes around a minute for the sorting to complete.
The compare function basically splits the two strings into arrays of chunks having only characters and only numbers. For each comparison, the array is looped till first non-equal chunk is found.
Has someone faced this issue as well? Any solutions?