Airbnb Interview Question

Given a CSV array containing 3 properties, sort the array by 1 property and make sure that the other property is not repeated