Verified Commit 385cda26 authored by David Libeau's avatar David Libeau
Browse files

Fixing date sorting

parent b4709a19
......@@ -95,7 +95,7 @@
$bdd=[];
ini_set('auto_detect_line_endings',TRUE);
$handle = fopen("data.txt",'r');
while ( ($data = fgetcsv($handle) ) !== FALSE ) {
while ( ($data = fgetcsv($handle, 1000) ) !== FALSE ) {
if($data[0]!=null){
$counter[$data[3]]=$data[4];
$ligne=[];
......@@ -186,9 +186,6 @@
</section>
<section style="background-color:white">
<h2>Statistiques supplémentaires</h2>
<p>
</p>
<div id="tabs">
<ul>
<li><a href="#tabs-1">Alphabetique</a></li>
......@@ -208,7 +205,7 @@
<div id="tabs-2">
<table class="stats"><?php
$bdd_sorted=$bdd_best;
usort($bdd_sorted, function($a, $b) {
uasort($bdd_sorted, function($a, $b) {
return $b["compteur"] <=> $a["compteur"];
});
foreach($bdd_sorted as $s => $c){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment