--- a/documents/charts.php +++ b/documents/charts.php @@ -112,7 +112,11 @@ get_view("app", "byAgencyID?group=true",null, false,false,true)->rows; - +function cmp($a, $b) +{ + return $a->value > $b->value; +} +usort($rows, "cmp"); $dataValues = Array(); $i = 0;