Alert: 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.

_sort_uname_callback( array $a, array $b )

Callback to sort array by a ‘Name’ key.

Parameters Parameters


(array) (Required) array with 'Name' key.


(array) (Required) array with 'Name' key.

Top ↑

Return Return

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

Top ↑

Source Source

File: wp-admin/includes/plugin.php

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

Top ↑

Changelog Changelog

Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.