Completes PriorityComparator class