I have this array:
numbers = array(
"1"=>2
"2"=>5
"3"=>1
"4"=>12
);
if I used sort(numbers) the array will become
numbers = array(
"1"=>1
"2"=>2
"3"=>5
"4"=>12
);
the indexes still in same places just sort the numbers I want to move the indexes also like the following:
numbers = array(
"3"=>1
"1"=>2
"2"=>5
"4"=>12
);