PAA, PAAPD, sorting, info output, comparator