Sort Object Array Alphabetically Javascript Interview