Class PredSort

java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.compare.PredSort
All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory, PreprocessablePredicateFactory

public final class PredSort extends AbstractSingleResultPredicate implements PreprocessablePredicateFactory
predsort(X,Y,Z) - sorts a list using the specified predicate.

Sorts the list represented by Y using the predicate represented by X - and attempts to unify the result with Z. The predicate represented by X must indicate whether the second argument is equal, less than or greater than the third argument - by unifying the first argument with an atom which has the value =, < or >.