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

Sort subscriptions by the Name.


Description Description


Parameters Parameters

$a

(Required) Product array.

$b

(Required) Product array.


Top ↑

Return Return

(int)


Top ↑

Source Source

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

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

Top ↑

User Contributed Notes User Contributed Notes

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