Array toSorted / toReversed Playground

Wulan’s Thursday parcel list on train #1: sort() and reverse() shunt that train’s own wagons, toSorted() and toReversed() bring a new train onto track 2, and…

The key idea

sort and reverse change in place; toSorted and toReversed copy

Try it in this playground