Lines Matching refs:sort
2 Test sort() function : basic functionality
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
12 * Testing sort() by providing arrays with default keys and assoc arrays
20 echo "*** Testing sort() : basic functionality ***\n";
32 echo "\n-- Testing sort() by supplying string array, 'flag' value is defualt --\n";
34 var_dump( sort($temp_array) ); // expecting : bool(true)
37 echo "\n-- Testing sort() by supplying numeric array, 'flag' value is defualt --\n";
39 var_dump( sort($temp_array) ); // expecting : bool(true)
42 echo "\n-- Testing sort() by supplying string array, 'flag' = SORT_REGULAR --\n";
44 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
47 echo "\n-- Testing sort() by supplying numeric array, 'flag' = SORT_REGULAR --\n";
49 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
52 echo "\n-- Testing sort() by supplying string array, 'flag' = SORT_STRING --\n";
54 var_dump( sort($temp_array, SORT_STRING) ); // expecting : bool(true)
57 echo "\n-- Testing sort() by supplying string array (case insensitive), 'flag' = SORT_STRING|SORT_F…
59 var_dump( sort($temp_array, SORT_STRING|SORT_FLAG_CASE) ); // expecting : bool(true)
62 echo "\n-- Testing sort() by supplying string array (natural), 'flag' = SORT_NATURAL --\n";
64 var_dump( sort($temp_array, SORT_NATURAL) ); // expecting : bool(true)
67 echo "\n-- Testing sort() by supplying string array (natural, case insensitive), 'flag' = SORT_NATU…
69 var_dump( sort($temp_array, SORT_NATURAL|SORT_FLAG_CASE) ); // expecting : bool(true)
72 echo "\n-- Testing sort() by supplying numeric array, 'flag' = SORT_NUMERIC --\n";
74 var_dump( sort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
80 *** Testing sort() : basic functionality ***
82 -- Testing sort() by supplying string array, 'flag' value is defualt --
103 -- Testing sort() by supplying numeric array, 'flag' value is defualt --
116 -- Testing sort() by supplying string array, 'flag' = SORT_REGULAR --
137 -- Testing sort() by supplying numeric array, 'flag' = SORT_REGULAR --
150 -- Testing sort() by supplying string array, 'flag' = SORT_STRING --
171 -- Testing sort() by supplying string array (case insensitive), 'flag' = SORT_STRING|SORT_FLAG_CASE…
192 -- Testing sort() by supplying string array (natural), 'flag' = SORT_NATURAL --
213 -- Testing sort() by supplying string array (natural, case insensitive), 'flag' = SORT_NATURAL|SORT…
234 -- Testing sort() by supplying numeric array, 'flag' = SORT_NUMERIC --