- A
- array_change_key_case
- array_chunk
- array_combine
- array_count_values
- array_diff
- array_diff_assoc
- array_diff_key
- array_fill
- array_fill_keys
- array_flip
- array_intersect
- array_intersect_assoc
- array_intersect_key
- array_key_exists
- array_keys
- array_pad
- array_product
- array_rand
- array_reverse
- array_search
- array_slice
- array_splice
- array_sum
- array_unique
- array_values
- arsort
- asort
- C
- count
- I
- in_array
- K
- krsort
- ksort
- N
- natcasesort
- natsort
- R
- range
- rsort
- S
- shuffle
- sort
natsort
Definition
bool natsort ( array &$array )
Description
This function implements a sort algorithm that orders alphanumeric strings in the way a human being would while maintaining key/value associations. This is described as a "natural ordering". An example of the difference between this algorithm and the regular computer string sorting algorithms (used in sort()) can be seen in the example below.