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.

WP_Theme::_name_sort_i18n( string $a, string $b )

Name sort (with translation).


Parameters

$a

(string) (Required) First name.

$b

(string) (Required) Second name.


Return

(int) Negative if $a falls lower in the natural order than $b. Zero if they fall equally. Greater than 0 if $a falls higher in the natural order than $b. Used with usort().


Source

File: wp-includes/class-wp-theme.php

	private static function _name_sort_i18n( $a, $b ) {
		// Don't mark up; Do translate.
		return strnatcasecmp( $a->display( 'Name', false, true ), $b->display( 'Name', false, true ) );
	}

Changelog

Changelog
Version Description
WP-3.4.0 Introduced.