Exemplo n.º 1
0
	/**
	* Callback method for PHP array sorting methods for sorting a list of items by their shipping address id.
	*
	* Usage:
	* $items = $quote->getItems();
	* usort($items, array('ISC_QUOTE', 'sortItemsByAddressIdCallback'));
	*
	* @param ISC_QUOTE_ITEM $a
	* @param ISC_QUOTE_ITEM $b
	* @return int
	*/
	public static function sortItemsByAddressIdCallback($a, $b)
	{
		return strcmp($a->getAddressId(), $b->getAddressId());
	}