You are here

protected function PriorityList::sort in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/PriorityList.php \Zend\Stdlib\PriorityList::sort()

Sort all items.

Return value

void

4 calls to PriorityList::sort()
PriorityList::current in vendor/zendframework/zend-stdlib/src/PriorityList.php
PriorityList::key in vendor/zendframework/zend-stdlib/src/PriorityList.php
PriorityList::rewind in vendor/zendframework/zend-stdlib/src/PriorityList.php
PriorityList::toArray in vendor/zendframework/zend-stdlib/src/PriorityList.php
Return list as array

File

vendor/zendframework/zend-stdlib/src/PriorityList.php, line 146

Class

PriorityList

Namespace

Zend\Stdlib

Code

protected function sort() {
  if (!$this->sorted) {
    uasort($this->items, [
      $this,
      'compare',
    ]);
    $this->sorted = true;
  }
}