I have array
, where values are arrays
.
How can I order the first array
, according to with a value that is in the second array
?
Example:
array(array(id=>5), array(id=>2), array(id=>1), array(id=>3));
What you want is:
array(array(id=>1), array(id=>2), array(id=>3), array(id=>5));