returning integer values from getPriorityOrder()