API Reference > bentleyjs-core > Collections > PriorityQueue > sort 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 core/bentley/src/PriorityQueue.ts Line 77 Last Updated: 12 June, 2024