A WordPress-centric search engine for devs and theme authors



_sort_name_callback ›

Since3.1.0
Deprecatedn/a
_sort_name_callback ( $a, $b )
Access:
  • private
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'] );
}