_usort_by_first_member() – Sorts a multidimensional array by first member of each top level member

You appear to be a bot. Output may be restricted

Description

Sorts a multidimensional array by first member of each top level member

Used by uasort() as a callback, should not be used directly.

Usage

$int = _usort_by_first_member( $a, $b );

Parameters

$a
( array ) required
$b
( array ) required

Returns

int

Source

File name: wordpress/wp-admin/includes/import.php
Lines:

1 to 3 of 3
function _usort_by_first_member( $a, $b ) {
  return strnatcasecmp( $a[0], $b[0] );
}
 

 View on GitHub View on Trac