The following only introduces common array sorting methods, please refer to the help manual for detailed instructions
Sort the array by key name: ksort($array)
Sort the array by key name in reverse: krsort($array)
Sort the array Sort and maintain the index relationship: asort($array)
Reverse sort the array and maintain the index relationship: arsort($array)
Reverse sort the array: rsort
Sort the array: sort