Update topstats.php

Changed the order of attributes displayed
This commit is contained in:
Tzen 2023-11-28 11:51:04 +01:00 committed by GitHub
parent 44d843f466
commit c79db99526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ include './includes/header.php';
</form><br>"; </form><br>";
// Displaying top 10 comparisons for each attribute // Displaying top 10 comparisons for each attribute
$attributes = ['dBNOs', 'damageDealt', 'roadKills', 'teamKills','headshotKills','roundMostKills','kills','wins','top10s']; $attributes = ['wins','top10s','kills','dBNOs','damageDealt','headshotKills','roadKills','teamKills','roundMostKills'];
foreach ($attributes as $attribute) { foreach ($attributes as $attribute) {
echo "<h3>Top 10 $attribute</h3>"; echo "<h3>Top 10 $attribute</h3>";
uasort($players_data[$selected_mode], function ($a, $b) use ($attribute) { uasort($players_data[$selected_mode], function ($a, $b) use ($attribute) {