Original Array

[Fred] => 31
[Al] => 27
[Gandalf] => wizzard
[Betty] => 42
[Frodo] => hobbit

Array sorted with sort

[0] = 27
[1] = 31
[2] = 42
[3] = hobbit
[4] = wizzard

Array sorted with sort and SORT_NUMERIC

[0] = wizzard
[1] = hobbit
[2] = 27
[3] = 31
[4] = 42

Array sorted with rsort

[0] = wizzard
[1] = hobbit
[2] = 42
[3] = 31
[4] = 27

Array sorted with asort

[Al] = 27
[Fred] = 31
[Betty] = 42
[Frodo] = hobbit
[Gandalf] = wizzard

Array sorted with arsort

[Gandalf] = wizzard
[Frodo] = hobbit
[Betty] = 42
[Fred] = 31
[Al] = 27