I have an array that results in something like this: a = laranja b = banana c = maçã d = limao
Now I want to reorder it, but there is not something logical, like, d,c,b,a.
I want to just reorder the way i want. could be a,d,c,b or , c,a,b,d.
I tried sort, multisort, but without sucess.
Are there some advice?
I paste some code here to see if its helps
See sort()
Also if you write a function to sort the values however you want, use usort()
Edit:
Your foreach statement is kaput.
Output: