packageID when Extending daml contract

How are packageIDs generated? Are there any order to them?

From the Daml Documentation:
“Changes to the Daml model will result in changed packageIDs for the contained templates.”

My main question is :
are the packageIDs when extending acontract monotonic?
In other words, is it always true that old-packageID < new-packageID
or conversely
always true that old-packageID >new-packageID

Package ids are a hash (a sha256) of the content. So as usual for hashes you don’t get any guarantees how the old & new packag id are ordered.