Update topstats.php

Reordered the attributes
This commit is contained in:
Tzen 2023-11-28 12:11:41 +01:00 committed by GitHub
parent fcdaffd1ef
commit 5a6e03acf9
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) {