wpseek.com
A WordPress-centric search engine for devs and theme authors



_sort_name_callback › WordPress Function

Since3.1.0
Deprecatedn/a
_sort_name_callback ( $a, $b )
Access:
  • private
Parameters: (2)
  • (array) $a First array.
    Required: Yes
  • (array) $b Second array.
    Required: Yes
Returns:
  • (int)
Defined at:
Codex:

Callback to sort array by a 'name' key.



Source

function _sort_name_callback( $a, $b ) {
	return strnatcasecmp( $a['name'], $b['name'] );
}