Skip to content
Snippets Groups Projects
Commit bd9fabbd authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Sort table view with largest values first.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1010 44740490-163a-0410-bde0-09ae8108e29a
parent 4983b4a4
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,6 @@ $max = sspmod_statistics_Graph_GoogleCharts::roof($maxvalue);
*/
$summaryDataset = array();
foreach($results AS $slot => $res) {
foreach ($res AS $key => $value) {
if (array_key_exists($key, $summaryDataset)) {
$summaryDataset[$key] += $value;
......@@ -120,10 +119,9 @@ foreach($results AS $slot => $res) {
$summaryDataset[$key] = $value;
}
}
}
asort($summaryDataset);
$summaryDataset = array_reverse($summaryDataset, TRUE);
#echo '<pre>'; print_r($summaryDataset); exit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment