Array sort works on copy. Via @mnapoli