Allocation when sorting a view

This is fixed in Julia 1.9. As a workaround, you can use sort!(x; alg=InsertionSort).

1 Like