I have store array value in the following variable
$weight[$cQ][$post]
where $cQ is Index and $post is article ID , i am storing rating values in the array.
I have used sort($weight[$cQ][$post]) PHP function for ascending order. But its not ordering array values.. Is there any good solution for sorting array ascending.
Array
(
[0] => Array
(
[948] => 0.0086665
)
[1] => Array
(
[934] => 0.0119
)
[2] => Array
(
[932] => 0.0176
)
[3] => Array
(
[931] => 0.0125
)
[4] => Array
(
[940] => 0.0148
)
[5] => Array
(
[930] => 0.01235
)
[6] => Array
(
[933] => 0.01715
)
[7] => Array
(
[936] => 0.0168
)
[8] => Array
(
[945] => 0.0117665
)
)
sort($weight[$cQ]);?sort($weight[$cQ][$post]);, still no output !asort($weight[$cq][$post]);?