sort_2Version: NextOn this pagesort/2 Description sort/2 is a predicate that sorts a list of terms, removing duplicates. Signature sort(+List, ?`sort/2`ed) Where: List is the input list to sort. sort/2ed is the sorted list without duplicates.