Fix prioritySort for priority = 0