I only found questions on how to sort arrays with subarray values, but I would like to know if you can sort a subarray with subarray values.
foreach ($el->getArray('plain') as $element){
foreach ($element as $data)
{
<?php echo $data['name']; ?>
<?php echo $data['value']; ?>
}
}
I think the best solution is to instantiate $array by doing:
$array = $el->getArray('plain');
before the foreach and then sort it immediately and then loop through it.
However, I am not sure you can sort an array inside an array. First, is this possible and second how would you do it?