qsort
qsort(arr[, flags])
The qsort function sorts the array arr in place according to the options specified by flags. It returns 1 on success, or 0 if the array is not a regular array (that is, an associative array).
flags is a bitmask that specifies sort options and is constructed by ORing the flags from the following list:
• 0x1 — ignore the case of the characters.
• 0x2 — reserved for future use.
• 0x4 — reverse the sense of the comparisons so the greatest value becomes the first array element.
• 0x8 — sort in numerical order. Bit 1 is ignored if this bit is set.
If flags is 0 or omitted, the sort is according to the collating sequence of the current locale.