Function __global->_multi_sort

Definitions

sources/global3.php

  • Helper function to sort a list of maps by the value at $key in each of those maps.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$a array No No required parameter N/A N/A The first to compare
$b array No No required parameter N/A N/A The second to compare

Returns

  • The comparison result (0 for equal, -1 for less, 1 for more)
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Helper function to sort a list of maps by the value at $key in each of those maps.
 *
 * @param  array $a The first to compare
 * @param  array $b The second to compare
 * @return integer The comparison result (0 for equal, -1 for less, 1 for more)
 */

function _multi_sort(array $a, array $b) : int