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

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

Called by

    Invoked by

      Calls

      1 to 1 of 1

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

      Call hooks

      Function name: _usort_by_first_member
      Plugin ref: WordPress
      Version: 4.9
      Sourcefile: wp-admin/includes/import.php
      File ref: wp-admin/includes/import.php
      API type: private
      Deprecated?: No
      API Letters: _,B,F,M,U

      Published: 12th March 2017 | Last updated: 12th March 2017

      Information

      Function name: _usort_by_first_member
      Plugin ref: WordPress
      Version: 4.9
      Sourcefile: wp-admin/includes/import.php
      File ref: wp-admin/includes/import.php
      API type: private
      Deprecated?: No
      API Letters: _,B,F,M,U

      • Plugins
      • Themes
      • Shortcodes
      • APIs
      • Files
      • Hooks
      • Classes
      • Sites
      • Sitemap
      • Blog
      WooCommerce a2z WooCommerce a2z
      WooCommerce

      Site:  woocommerce.wp-a2z.org
      © Copyright WooCommerce a2z 2014-2018. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins