Sorts list of names.