What is the asort() function for ?
asort()
sorting associative arrays in ascending order according to the key
sorting associative arrays in ascending order according to the value
sorting associative arrays in descending order according to the key
sorting associative arrays in descending order according to the value