So, in essence, you change the comparison criteria on the fly, and this is simply not the functionality that priority queue contracts offer. Please note that this may work in some cases (for example, a bunch can sort some elements when deleting or inserting another element), but since you have no guarantees, this is just an invalid approach.
, , , . , , (O (n * log (n))), , .