WordPress at Your Fingertips
function is not described

wc_product_attribute_uasort_comparison() WC 2.6.0

Used to sort products attributes with uasort.

No Hooks.

Return

Int.

Usage

wc_product_attribute_uasort_comparison( $a, $b );
$a(array) (required)
First attribute to compare.
$b(array) (required)
Second attribute to compare.

Changelog

Since 2.6.0 Introduced.

Code of wc_product_attribute_uasort_comparison() WC 5.6.0

function wc_product_attribute_uasort_comparison( $a, $b ) {
	$a_position = is_null( $a ) ? null : $a['position'];
	$b_position = is_null( $b ) ? null : $b['position'];
	return wc_uasort_comparison( $a_position, $b_position );
}