bug 1318: Request the array containing the priorities to sort entries propoerly