I am quite new at php, I am trying to order arrays inside a quite nested array according to a property inside the arrays that need sorting.
<?php
$unOrderedArray = array(
'fields' => array(
array(
'key' => 'field_60f6e595c18cc',
'name' => 'Should be last',
),
array(
'key' => 'field_60f6bcf3e0b87',
'name' => 'Should be second',
),
array(
'key' => 'field_60f6adb77c6f3',
'name' => 'Should be first',
)
)
);
?>
So the key
property has a value that could be ordered alphabetically.
Is this posibble?