Availability:
:- use_module(library(sort)).(can be autoloaded)<, >
or
=. If the built-in predicate compare/3
is used, the result is the same as sort/2.
See also keysort/2.86Please
note that the semantics have changed between 3.1.1 and 3.1.2.