Before:
array(5) {
[0]=>
int(520)
[1]=>
string(2) "33"
[2]=>
int(9)
[3]=>
string(3) "199"
["zero"]=>
int(1234)
}
After sort numeric:
array(5) {
[0]=>
int(9)
[1]=>
string(2) "33"
[2]=>
string(3) "199"
[3]=>
int(520)
[4]=>
int(1234)
}
After sort string:
array(5) {
[0]=>
int(1234)
[1]=>
string(3) "199"
[2]=>
string(2) "33"
[3]=>
int(520)
[4]=>
int(9)
}
After sort regular (default using relational operators):
array(5) {
[0]=>
int(9)
[1]=>
string(2) "33"
[2]=>
string(3) "199"
[3]=>
int(520)
[4]=>
int(1234)
}