WC_Helper::_sort_by_name()public staticWC 1.0

Sort subscriptions by the Name.

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

No Hooks.

Return

Int.

Usage

$result = WC_Helper::_sort_by_name( $a, $b );
$a(array) (required)
Product array.
$b(array) (required)
Product array.

Code of WC_Helper::_sort_by_name() WC 6.7.0

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