Created new array for names using .map. sorted the array and named the sorted version 'names'.