Array Sort bug when using index to update ref value
https://stackblitz.com/edit/mutative-sort-bug-ckskhik4?file=src%2FApp.tsx&terminal=dev

It looks like it's maintaining the sort order of the original array rather than the new sort order.
When I try to update a value using the sorted array and use it's new index position, the old order being updated instead.
关闭于 2025-02-27 2 条评论