Sort multidimensional array by column value within a column
PHP Snippet 1:
array_multisort(array_column($array, 'earnest_money_due'), $array);
PHP Snippet 2:
array_multisort(array_map(fn($row) => $row['earnest_money_due']['value'], $array), $array);
PHP Snippet 3:
usort($array, fn($a, $b) => $a['earnest_money_due']['value'] <=> $b['earnest_money_due']['value']);