What is the usual procedure for sorting a 3-dimensional multidimensional array base at the 3rd level value of "count". In this array, the number of samples can be 1,2,3,4,5 and so on. how to perform a transfer and set a larger data array of the count array, which will be sorted at the beginning using the index of the 1st level array.
basically, if an array entry has a larger number in 'count', let it be at the beginning of the array in descending order.
(if 1 record contains the score 1, 2, 3, let it use the largest number of counters as a decisive variable for sorting)
An example of a multidimensional array looks like
Array ( [174] => Array ( [28] => Array ( [index] => 28 [draw] => 1 [date] => 12-05-2036 [value_a_key] => 7 [value_b_key] => 2 [value_c_key] => 4 [value_a] => 1 [value_b] => 5 [value_c] => 12 [count] => 1 ) ) [175] => Array ( [19] => Array ( [index] => 19 [draw] => 10 [date] => 12-05-2027 [value_a_key] => 2 [value_b_key] => 4 [value_c_key] => 3 [value_a] => 1 [value_b] => 5 [value_c] => 13 [count] => 1 ) [26] => Array ( [index] => 26 [draw] => 3 [date] => 12-05-2034 [value_a_key] => 5 [value_b_key] => 4 [value_c_key] => 2 [value_a] => 1 [value_b] => 5 [value_c] => 13 [count] => 2 ) [28] => Array ( [index] => 28 [draw] => 1 [date] => 12-05-2036 [value_a_key] => 7 [value_b_key] => 2 [value_c_key] => 5 [value_a] => 1 [value_b] => 5 [value_c] => 13 [count] => 3 ) ) [178] => Array ( [19] => Array ( [index] => 19 [draw] => 10 [date] => 12-05-2027 [value_a_key] => 2 [value_b_key] => 4 [value_c_key] => 7 [value_a] => 1 [value_b] => 5 [value_c] => 16 [count] => 1 ) )
source share