risolto. se a qualcuno dovesse servire, al codice precedente ho aggiunto quello che segue![]()
Codice PHP:
foreach ($classifica as $key => $row)
{
$vittorie[$key] = $row['vittorie'];
$secondi[$key] = $row['secondi'];
$terzi[$key] = $row['terzi'];
}
array_multisort($vittorie, SORT_DESC, $secondi, SORT_DESC, $terzi, SORT_DESC, $classifica);