_sort_uname_callback

Callback to sort array by a 'Name' key.

Description

_sort_uname_callback( $a, $b ); 

Parameters (2)

0. $a
The a.
1. $b
The b.

Usage

  1. if ( !function_exists( '_sort_uname_callback' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/plugin.php'; 
  3.  
  4. // The a. 
  5. $a = null; 
  6.  
  7. // The b. 
  8. $b = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = _sort_uname_callback($a, $b); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/plugin.php  
  1. function _sort_uname_callback( $a, $b ) { 
  2. return strnatcasecmp( $a['Name'], $b['Name'] );