Allocation when sorting a view

So my guess would be that there might be a bug somewhere:

x = [2.0,1.0,10.0,15.0,20.0]

@btime sort!(view($x,2:4))
26.131 ns (0 allocations: 0 bytes)
2 Likes