order changed

as discussed in class
existing nodes should be in front of newly created nodes if they have the same priority/count