Did you know? SWI-Prolog can work with tar archivesSearch Documentation:
SWI-Prolog owl logoPredicate msort/2