diff --git a/html/_layouts/default.php b/html/_layouts/default.php index fbd1ba42c9b4a58ad4342ffd080234ff7be17de9..fa3c67a6c22db2ddf37d888a3533b6c837547328 100644 --- a/html/_layouts/default.php +++ b/html/_layouts/default.php @@ -193,7 +193,7 @@ if( !empty($csv) ){ <th>Sp.</th> <th>Name</th> <th>Team</th> - <th>A</th> + <th>Z</th> </tr> </thead> <tbody> diff --git a/html/assets/js/script.js b/html/assets/js/script.js index ff5c2c833941f5a2cfebdd9135220151f65378b3..e579696c01ca88801a1699c8dd0f31f29f531588 100644 --- a/html/assets/js/script.js +++ b/html/assets/js/script.js @@ -333,7 +333,7 @@ function calculateTabelle(saison,runde,show=true){ } function calculateTore(saison){ - var n=Object.entries( STATISTIK ).sort( (a,b) => ( a[1].T < b[1].T || ( a[1].T == b[1].T && a[1].S > b[1].S ) ) ).slice(0,10).map( + var n=Object.entries( STATISTIK ).sort( function(a,b){ return ( ( a[1].T < b[1].T || ( a[1].T == b[1].T && a[1].S > b[1].S ) ) ? 1 : -1 ) } ).slice(0,10).map( function(v,i){ var team=TEAMS.filter( (a) => ( a.nt == v[1].nt ) ); if( team.length == 0 ){ @@ -358,7 +358,7 @@ function calculateTore(saison){ } function calculateAssists(saison){ - var n=Object.entries( STATISTIK ).sort( (a,b) => ( a[1].A < b[1].A || ( a[1].A == b[1].A && a[1].S > b[1].S ) ) ).slice(0,10).map( + var n=Object.entries( STATISTIK ).sort( (a,b) => ( a[1].A < b[1].A || ( a[1].A == b[1].A && a[1].S > b[1].S ) ) ? 1 : -1 ).slice(0,10).map( function(v,i){ var team=TEAMS.filter( (a) => ( a.nt == v[1].nt ) ); if( team.length == 0 ){ @@ -383,7 +383,7 @@ function calculateAssists(saison){ } function calculateZwk(saison){ - var n=Object.entries( STATISTIK ).sort( (a,b) => ( a[1].Z < b[1].Z || ( a[1].Z == b[1].Z && a[1].S > b[1].S ) ) ).slice(0,10).map( + var n=Object.entries( STATISTIK ).sort( (a,b) => ( a[1].Z < b[1].Z || ( a[1].Z == b[1].Z && a[1].S > b[1].S ) ) ? 1 : -1 ).slice(0,10).map( function(v,i){ var team=TEAMS.filter( (a) => ( a.nt == v[1].nt ) ); if( team.length == 0 ){