SplDoublyLinkedList::sort() extension