I'm struggling with a stupid issue i can't solve, probably because my head has just gone nuts. But really, i can't figure it out. It probably is simple than i think, but I wasn't able to find a solution on the web either. I have this array, sorted like i want:
array (size=3)
9 => float 124.58194
2 => float 52.8428
8 => float 25.041806
Then, another array has the same keys, but different order
array (size=3)
8 => string '3' (length=1)
9 => string '3' (length=1)
2 => string '2' (length=1)
Can i sort the second one by keys, using the order of the first one? If so, how?
Thanks in advance