DataStore::sort_array( array $arr, string $sort_by, string $direction )

Sorts array of arrays based on subarray key $sort_by.


Description Description


Parameters Parameters

$arr

(Required) Array to sort.

$sort_by

(Required) Ordering property.

$direction

(Required) DESC/ASC.


Top ↑

Source Source

File: packages/woocommerce-admin/src/API/Reports/DataStore.php


			


Top ↑

User Contributed Notes User Contributed Notes

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