b-table sort
#7220
Replies: 1 comment
-
Can you share your fix for this problem? Or did you get some solution for this ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using b-table default sorting method and I found that in the method the all value will be transformed to String as follows:
therefore, when my field values are alphabets with numbers and starts with '0' the sorting will cause problem.
For example, '007D2' will be smaller than '00500', cause 00500 will go to "String(value)" and I get "320"
I wonder if it is inevitable or the toString function above can be improved ?
FYI, I customized my compare routine to avoid the situation, but I just wonder there is any solution to avoid it in the toString function
Beta Was this translation helpful? Give feedback.
All reactions