predsort/4¶
predsort(:Compare, +List, -Sorted) is det.%% Sorts similar to sort//22, but determines the order of two terms% by calling Compare(-Delta, +E1, +E2). This call must unify% Delta with one of <, > or =. If built-in predicate compare//33 is% used, the result is the same as sort//22. See also keysort//22.
predsort(+ Pred, + List, - Sorted)*
Sorts similar to sort//22, but determines the order of two terms by calling Pred(- Delta, + E1, + E2) . This call must unify Delta with one of <
, >
or =
. If built-in predicate compare//33 is used, the result is the same as sort//22.