diff --git a/html/bandwidth-graph.php b/html/bandwidth-graph.php index dd6da5a1d..0f6083d24 100644 --- a/html/bandwidth-graph.php +++ b/html/bandwidth-graph.php @@ -68,7 +68,7 @@ if ($imgtype == "historical") { $i = "0"; - foreach (dbFetchRows("SELECT * FROM `bill_history` WHERE `bill_id` = ? ORDER BY `bill_datefrom` LIMIT 12", array($bill_id)) as $data) { + foreach (dbFetchRows("SELECT * FROM `bill_history` WHERE `bill_id` = ? ORDER BY `bill_datefrom` DESC LIMIT 12", array($bill_id)) as $data) { $datefrom = strftime("%e %b %Y", strtotime($data['bill_datefrom'])); $dateto = strftime("%e %b %Y", strtotime($data['bill_dateto']));