its the way you have implimented the code i supplied
as the code works just fine in below example
$resultArray=array
(
0 => array
(
0 => 218,
1 => 3,
2 => 1,
3 => 33.33
),
1 => array
(
0 => 253,
1 => 1,
2 => 2,
3 => 200
),
2 => array
(
0 => 281,
1 => 4,
2 => 4,
3 => 100
)
);
foreach($resultArray as $val)
$sortArray[]=$val[3];
array_multisort($sortArray, SORT_NUMERIC, SORT_DESC, $resultArray);
foreach($resultArray as $value){
echo"<table><tr>";
foreach($value as $key => $value2){
echo"
<td class=\"datachartRESULT\" align=\"center\">
<span class=\"datachartRESULTTEXT\">
$value2
</span>
</td>";
}
echo"</tr></table>";
}