is ! haphazardly implemented for a reason?

yes: array.sort!

no: array.sort_by!