Changing job retrieval to use priority as a switch rather than a sort priority