Hi, I know enough about PHP to get a script to run, but now I have a project which needs a way to sort a list of integers so they are in the order of a master list.
for example:
$masterlist=array('4','6','3','5','7','1');
and my variable array would have a subset, like maybe
$incoming=array('1','7','5','6');
I need to sort $incoming so that its in the order of $masterlist, so when I print $incoming, I see
6
5
7
1
both of my arrays are integers, so at least I don't have to worry about strings, and my master list is like 4000 integers large.
any suggestions or help would be greatly appreciated