Note that this is different then sort or
reverse , where a modified copy of the array was returned. In
this case, the existing array was actually modified.
This is grossly inconsistent from a theoretical point of view,
but from a practical point of view, really does not amount to a hill
of beans, and probably is helpfull.