wc_ascii_uasort_comparison()WC 1.0

Sort values based on ascii, usefull for special chars in strings.

Хуков нет.

Возвращает

int.

Использование

wc_ascii_uasort_comparison( $a, $b );
$a(строка) (обязательный)
First value.
$b(строка) (обязательный)
Second value.

Код wc_ascii_uasort_comparison() WC 8.7.0

function wc_ascii_uasort_comparison( $a, $b ) {
	$a = remove_accents( $a );
	$b = remove_accents( $b );
	return strcmp( $a, $b );
}