Private GIT

Skip to content
Snippets Groups Projects
Commit 40080087 authored by Julien Mathis's avatar Julien Mathis
Browse files

add order for extracting data

parent 5f9eef8c
Branches
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@
$listMetric = array();
$datas = array();
$DBRESULT = $pearDBO->query("SELECT metric_id, metric_name FROM metrics, index_data WHERE metrics.index_id = index_data.id AND id = '$index'");
$DBRESULT = $pearDBO->query("SELECT metric_id, metric_name FROM metrics, index_data WHERE metrics.index_id = index_data.id AND id = '$index' ORDER BY metric_name");
while ($index_data = $DBRESULT->fetchRow()){
if (!isset($listMetric[$index_data["metric_name"]]))
$listMetric[$index_data["metric_name"]] = $index_data["metric_name"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment