_sort_uname_callback()WP 3.1.0

Declares a callback to sort array by a 'Name' key.

Internal function — this function is designed to be used by the kernel itself. It is 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.

_sort_uname_callback() code WP 6.5.4

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