_sort_uname_callback

Advertisement

Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

Callback to sort array by a ‘Name’ key.

Syntax Syntax

_sort_uname_callback( array $a, array $b )

Parameters Parameters

$a

(Required) array with 'Name' key.

$b

(Required) array with 'Name' key.

Return Return

(int) Return 0 or 1 based on two string comparison.

Source Source

File: wp-admin/includes/plugin.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Advertisement

Leave a Reply