I have an initial array that i want to sort several times in different places of my script (always from the original array), but for the second time I want to sort it is already sorted by the first sort operation.
Code is something like this:
Code: Select all
$rank1 = $vendedor;
//Fisrt Ranking
array_multisort($neto, SORT_DESC, $rank1);
.
.
.
.
$rank2 = $vendedor;
//Second Ranking
array_multisort($ventas, SORT_DESC, $rank2);Thank you.