It's useful trick in situation when you need to sort certain groups of data. Preserve chronological order of items inserted in Heap.
Good use-case is php_error_log.
Each log entry has own majority of error. And it's usefull to sort file using max heap.
The soulution is - override default SplPriorityQueue
<?php
class OrderedPriority extends SplPriorityQueue
{