sort will return a sorted array instead of modifying the inout array