Did you know? SWI-Prolog supports TIPCSearch Documentation:
SWI-Prolog owl logoPredicate predsort/3