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_name_callback( $a,  $b )

Return Return


Source Source

File: wp-admin/includes/widgets.php

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


Changelog Changelog

Version Description
3.1.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.