WC_Helper::_sort_by_product_name()public staticWC 1.0

Sort subscriptions by the product_name.

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

No Hooks.

Return

Int.

Usage

$result = WC_Helper::_sort_by_product_name( $a, $b );
$a(array) (required)
Subscription array.
$b(array) (required)
Subscription array.

Code of WC_Helper::_sort_by_product_name() WC 6.7.0

public static function _sort_by_product_name( $a, $b ) {
	return strcmp( $a['product_name'], $b['product_name'] );
}