final sorted_array lab