Fixed Arrays.sort mutating the passed in list.