PrioQueue.Enqueue (gb.data)

Sub Enqueue ( Value As Variant, Prio As Integer )

Enqueue an element. As opposed to Queue.Enqueue(), you must provide a priority index together with the actual value. The greater that priority, the more important the element. Important elements go closer to the beginning of the PrioQueue.