I have an array as follows:
//0-based index, 2 dimensions
$data = array(
array(
'name'=>'EJA210E',
'id'=>439,
'region_id'=>17,
.. other attributes ..
),
array(
'name'=>'EJA210E',
'id'=>440,
'region_id'=>3,
),
array(
'name'=>'EJA210E',
'id'=>439,
'region_id'=>15,
),
.. etc..
);
What would be sort, first by name, then by id, then by region_id? Sorting by any one of these is no problem; I would simply loop through and get the name
attribute, then re-order, however doing this three times I do not understand how to do.