diff --git a/index.html b/index.html index 02e4268..b212cf2 100644 --- a/index.html +++ b/index.html @@ -161,13 +161,16 @@ }) .then(response => response.json()) .then(data => { + const sortedPlayers = data.convocation.available + .sort((a, b) => (a.number || 0) - (b.number || 0)); + eventDetailsContent.innerHTML = `
${data.title}

Type: ${data.type}

Lieu: ${data.place}

Heure: ${data.time_start} - ${data.time_end}

Joueurs convoqués:
-