keysort_inplace { uc } @list; # And now @list itself is sorted. We don't # need to create a new array called @sorted.