diff --git a/functions/array.xml b/functions/array.xml
index a6a47d5609..064acf2886 100644
--- a/functions/array.xml
+++ b/functions/array.xml
@@ -1086,6 +1086,7 @@ array_walk ($fruits, 'test_print');
void arsort
array array
+ int sort_flags
@@ -1122,6 +1123,11 @@ fruits[c] = apple
The fruits have been sorted in reverse alphabetical order, and
the index associated with each element has been maintained.
+
+ You may modify the behavior of the sort using the optional
+ parameter sort_flags, for details
+ see sort.
+
See also: asort, rsort,
ksort, and sort.
@@ -1140,6 +1146,7 @@ fruits[c] = apple
void asort
array array
+ int sort_flags
@@ -1176,6 +1183,11 @@ fruits[a] = orange
The fruits have been sorted in alphabetical order, and the index
associated with each element has been maintained.
+
+ You may modify the behavior of the sort using the optional
+ parameter sort_flags, for details
+ see sort.
+
See also arsort, rsort,
ksort, and sort.
@@ -1641,6 +1653,7 @@ if (in_array ("Irix", $os))
int krsort
array array
+ int sort_flags
@@ -1671,6 +1684,11 @@ fruits[a] = orange
+
+ You may modify the behavior of the sort using the optional
+ parameter sort_flags, for details
+ see sort.
+
See also asort, arsort,
ksort sort, and
@@ -1690,6 +1708,7 @@ fruits[a] = orange
int ksort
array array
+ int sort_flags
@@ -1720,6 +1739,11 @@ fruits[d] = lemon
+
+ You may modify the behavior of the sort using the optional
+ parameter sort_flags, for details
+ see sort.
+
See also asort, arsort,
sort, and rsort.
@@ -1952,6 +1976,7 @@ while (list ($id, $name, $salary) = mysql_fetch_row ($result)) {
void rsort
array array
+ int sort_flags
@@ -1984,6 +2009,11 @@ fruits[3] = apple
The fruits have been sorted in reverse alphabetical order.
+
+ You may modify the behavior of the sort using the optional
+ parameter sort_flags, for details
+ see sort.
+
See also: arsort,
asort, ksort,
@@ -2061,6 +2091,7 @@ while (list (, $number) = each ($numbers)) {
void sort
array array
+ int sort_flags
@@ -2093,6 +2124,35 @@ fruits[3] = orange
The fruits have been sorted in alphabetical order.
+
+
+ The optional second parameter sort_flags
+ may be used to modify the sorting behavior using theese valies:
+
+
+ Sorting order flags:
+
+
+ SORT_ASC - sort in ascending order
+
+
+ SORT_DESC - sort in descending order
+
+
+
+
+ Sorting type flags:
+
+
+ SORT_REGULAR - compare items normally
+
+
+ SORT_NUMERIC - compare items numerically
+
+
+ SORT_STRING - compare items as strings
+
+
See also: arsort,