WC_Helper::_sort_by_product_name( array $a, array $b )

Sort subscriptions by the product_name.


Description Description


Parameters Parameters

$a

(Required) Subscription array.

$b

(Required) Subscription array.


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/admin/helper/class-wc-helper.php

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.