The native Array.prototype.sort used in ReorderableList sorts in place resulting in the props being mutated. This PR copies the array before call sort.
I experienced some odd behavior where the list order was unstable while reordering however it has proven difficult to reproduce. I don't know for sure but this issue seems like a likely culprit. This is a good change either way.
The native
Array.prototype.sort
used inReorderableList
sorts in place resulting in the props being mutated. This PR copies the array before callsort
.I experienced some odd behavior where the list order was unstable while reordering however it has proven difficult to reproduce. I don't know for sure but this issue seems like a likely culprit. This is a good change either way.