Fix ordering differences for equal priority items