Plugin Directory

Changeset 1965970


Ignore:
Timestamp:
10/30/2018 04:22:28 PM (7 years ago)
Author:
martindrapeau
Message:

Standings: team sort order bug fix

Location:
amilia-store/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • amilia-store/trunk/amilia-store-standings.php

    r1965968 r1965970  
    225225                teams.push(team);
    226226            }
    227             teams.sort(function(a,b) {
     227            teams.sort(function(a, b) {
    228228                if (a.Pts == b.Pts) {
    229229                    if (a.F == b.F) {
    230230                        if (a.GD == b.GD) return 0;
    231                         return a.GD < b.GD ? -1 : 1;
     231                        return a.GD < b.GD ? 1 : -1;
    232232                    }
    233                     return a.F < b.F ? -1 : 1;
    234                 }
    235                 return a.Pts < b.Pts ? -1 : 1;
     233                    return a.F < b.F ? 1 : -1;
     234                }
     235                return a.Pts < b.Pts ? 1 : -1;
    236236            });
    237237
  • amilia-store/trunk/amilia-store.php

    r1965968 r1965970  
    66Author: Martin Drapeau <martin.drapeau@amilia.com>
    77Copyright: 2014-2018 Amilia
    8 Version: 2.7.6
     8Version: 2.7.7
    99Author URI: http://www.amilia.com/
    1010License: Apache License 2.0
Note: See TracChangeset for help on using the changeset viewer.