The CallGraphSort class is used to inform the priorities constructed by the PriorityBuilder class. I have encapsulated config->callGraphProfile inside the CallGraphSort class. I've also nested the CallGraphSort class inside PriorityBuilder as it needs read-only access to its private fields.
I went with nesting the CallGraphSort class inside the PriorityBuilder class rather than adding to PriorityBuilder's public interface since it is only CallGraphSort that needs access to its private members and this way limits visibility to only those who need it.