You are here

public function ArrayObject::uasort in Express 8

Sort entries with a user-defined function and maintain key association.

Parameters

mixed $function: A callable function.

File

themes/contrib/bootstrap/src/Utility/ArrayObject.php, line 375
Contains \Drupal\bootstrap\Utility\ArrayObject.

Class

ArrayObject
Custom ArrayObject implementation.

Namespace

Drupal\bootstrap\Utility

Code

public function uasort($function) {
  if (is_callable($function)) {
    uasort($this->array, $function);
  }
}