New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Component] [table] Sortable El-Table #16618
Comments
The comparison of magnitude between strings is different from numbers. If you expect numerical magnitude ordering, please convert them to numbers before making the comparison. |
@zeyongTsai I understood In the example below I transform it into int, but not all actions don't work |
Couple of things to keep in mind:
Here's an updated example which uses |
@adapt0 you helped me a lot, thank you!! xd |
Bug Type:
Component
Environment
3.4.24
2.7.1
Edge
Vite
Reproduction
Related Component
el-table
Reproduction Link
Element Plus Playground
Steps to reproduce
use sortable
What is Expected?
order correctly
What is actually happening?
The function is ordering wrong
Additional comments
Maybe I don't know how to do it, but I wasted some time on this and couldn't solve it.
The text was updated successfully, but these errors were encountered: