I was wondering if anyone can help me.
Basically I have 2 arrays. One which is sorted and had various elements removed in order to sort the array and another which is the array that was initially used for the sort.
What I now want to do is loop through the values in the sorted array and match them to the full values in the 1st array.
For example Array 1 (unsorted) looks like this: array('test1.jpg', 'test2.jpg', 'test3.jpg', 'testmain.jpg')
Array 2 looks like this: array('main', '1', '2', '3', '4')