WordPress at a glance
function is not described

WP_Theme::_name_sort_i18n() private WP 3.4.0

Callback function for usort() to naturally sort themes by translated name.

{} It's a method of the class: WP_Theme{}

No Hooks.

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().

Usage

$result = WP_Theme::_name_sort_i18n( $a, $b );
$a(WP_Theme) (required)
First theme.
$b(WP_Theme) (required)
Second theme.

Changelog

Since 3.4.0 Introduced.

Code of WP_Theme::_name_sort_i18n() WP 5.5.3

<?php
private static function _name_sort_i18n( $a, $b ) {
	return strnatcasecmp( $a->name_translated, $b->name_translated );
}