WC_Helper::_sort_by_name()
Sort subscriptions by the Name.
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.
WC_Helper::_sort_by_name() WC Helper:: sort by name code WC 9.6.1
public static function _sort_by_name( $a, $b ) { return strcmp( $a['Name'], $b['Name'] ); }