What is sorting ?
List of sorting methods .
sort- ascending order
rsort- descending order
asort- ascending according to value
arsort- descending according to value
ksort- ascending according to key
krsort- descending according to key

source