sort Method

Reorders the queue. This function should only (and always) be called when the criteria governing the ordering of items on the queue have changed. For example, a priority queue containing graphics sorted by their distance from the camera would need to be reordered when the position of the camera changes.

sort(): void

Returns - void

Defined in

Last Updated: 17 December, 2024