4.8.8.3 Sorting Terms

Two predicates, sort/2 and keysort/2 sort lists into the standard order. keysort/2 takes a list consisting of key-value pairs and sorts according to the key.

Further sorting predicates are available in library(samsort).


Send feedback on this subject.