WC_Product_Variable::sort_variation_prices()protectedWC 1.0

Sort an associative array of $variation_id => $price pairs in order of min and max prices.

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

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->sort_variation_prices( $prices );
$prices(array) (required)
associative array of $variation_id => $price pairs.

Code of WC_Product_Variable::sort_variation_prices() WC 6.9.4

protected function sort_variation_prices( $prices ) {
	asort( $prices );

	return $prices;
}