The list is sorted by priority, but should there also be a note what happens with elements which have the same priority? Atm those depend on order of insertion, right?