Only use PriorityAsStringOrder if it is defined

This updates the code to match the documentation update in c3e0b5f5