WordPress at Your Fingertips
function is not described

WC_Product_Variable::sort_variation_prices() protected WC 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 5.8.0

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

	return $prices;
}