Quote from `#rust` IRC: > sort allocates 2n internally, unfortunately This is not what I'd expect when I read [“Sorts the slice, in place.”](https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.sort). The documentation should be improved by including the memory usage.