test orderbyPriority