Lines Matching refs:sort

2 Test sort() function : basic functionality
6 * Testing sort() by providing arrays with default keys and assoc arrays
14 echo "*** Testing sort() : basic functionality ***\n";
26 echo "\n-- Testing sort() by supplying string array, 'flag' value is default --\n";
28 var_dump( sort($temp_array) ); // expecting : bool(true)
31 echo "\n-- Testing sort() by supplying numeric array, 'flag' value is default --\n";
33 var_dump( sort($temp_array) ); // expecting : bool(true)
36 echo "\n-- Testing sort() by supplying string array, 'flag' = SORT_REGULAR --\n";
38 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
41 echo "\n-- Testing sort() by supplying numeric array, 'flag' = SORT_REGULAR --\n";
43 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
46 echo "\n-- Testing sort() by supplying string array, 'flag' = SORT_STRING --\n";
48 var_dump( sort($temp_array, SORT_STRING) ); // expecting : bool(true)
51 echo "\n-- Testing sort() by supplying string array (case insensitive), 'flag' = SORT_STRING|SORT_F…
53 var_dump( sort($temp_array, SORT_STRING|SORT_FLAG_CASE) ); // expecting : bool(true)
56 echo "\n-- Testing sort() by supplying string array (natural), 'flag' = SORT_NATURAL --\n";
58 var_dump( sort($temp_array, SORT_NATURAL) ); // expecting : bool(true)
61 echo "\n-- Testing sort() by supplying string array (natural, case insensitive), 'flag' = SORT_NATU…
63 var_dump( sort($temp_array, SORT_NATURAL|SORT_FLAG_CASE) ); // expecting : bool(true)
66 echo "\n-- Testing sort() by supplying numeric array, 'flag' = SORT_NUMERIC --\n";
68 var_dump( sort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
74 *** Testing sort() : basic functionality ***
76 -- Testing sort() by supplying string array, 'flag' value is default --
97 -- Testing sort() by supplying numeric array, 'flag' value is default --
110 -- Testing sort() by supplying string array, 'flag' = SORT_REGULAR --
131 -- Testing sort() by supplying numeric array, 'flag' = SORT_REGULAR --
144 -- Testing sort() by supplying string array, 'flag' = SORT_STRING --
165 -- Testing sort() by supplying string array (case insensitive), 'flag' = SORT_STRING|SORT_FLAG_CASE…
186 -- Testing sort() by supplying string array (natural), 'flag' = SORT_NATURAL --
207 -- Testing sort() by supplying string array (natural, case insensitive), 'flag' = SORT_NATURAL|SORT…
228 -- Testing sort() by supplying numeric array, 'flag' = SORT_NUMERIC --