I have tried every array sorting function in the PHP manual.
I have decided to do it another way anyway for this script but would still like to find a reliable way to do this.
See asort does the data and not the indecies. look at the example on the php page.
it will arrange it this way.
c = apple
b = banana
d = lemon
a = orange
I need this way
a = orange
b = banana
c = apple
d = lemon