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.

_usort_by_first_member( array $a, array $b ): int

Sorts a multidimensional array by first member of each top level member.


Description

Used by uasort() as a callback, should not be used directly.


Top ↑

Parameters

$a array Required
$b array Required

Top ↑

Return

int


Top ↑

Source

File: wp-admin/includes/import.php. View all references

function _usort_by_first_member( $a, $b ) {
	return strnatcasecmp( $a[0], $b[0] );
}

Top ↑

Changelog

Changelog
Version Description
2.9.0 Introduced.

Top ↑

User Contributed Notes

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