ITADN

Array Sort bug when using index to update ref value

#78Closedrafde 创建于 2025-02-26
R
rafdecommented
https://stackblitz.com/edit/mutative-sort-bug-ckskhik4?file=src%2FApp.tsx&terminal=dev ![Image](https://github.com/user-attachments/assets/4496b456-f0fa-4371-b7a0-06e020ce9ef2) 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 条评论