WordPress at Your Fingertips
function is not described

_sort_uname_callback() WP 3.1.0

Callback to sort array by a 'Name' key.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


Int. Return 0 or 1 based on two string comparison.


_sort_uname_callback( $a, $b );
$a(array) (required)
array with 'Name' key.
$b(array) (required)
array with 'Name' key.


Since 3.1.0 Introduced.

Code of _sort_uname_callback() WP 5.8.2

function _sort_uname_callback( $a, $b ) {
	return strnatcasecmp( $a['Name'], $b['Name'] );