Here's the idea: a user enters his ZIP code. Based on the inserted ZIP code, I get an array of ZIP codes (distance ordered).
Next I want to order an existing array of ZIP codes based on the distance ordered array.
So basically I have two arrays:
Array which should be ordered
array(2) { [0]=> string(4) "2018" [1]=> string(4) "2500" }
Distance ordered array
array(247) { [0]=> string(4) "2000" [1]=> string(4) "2500" [2]=> string(4) "2050" [2]=> string(4) "2018"
In this example, my array (number 1) should be ordered like so: [0] => 2500, [1] => 2018
How can I manage this?