Plugin Directory

Changeset 1945063


Ignore:
Timestamp:
09/22/2018 01:03:28 AM (8 years ago)
Author:
martindrapeau
Message:

Standings: better team ordering

Location:
amilia-store/trunk
Files:
2 edited

Legend:

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

    r1939290 r1945063  
    192192            }
    193193            teams.sort(function(a,b) {
    194                 if (a.Pts == b.Pts) return 0;
     194                if (a.Pts == b.Pts) {
     195                    if (a.F == b.F) {
     196                        if (a.GD == b.GD) return 0;
     197                        return a.GD < b.GD;
     198                    }
     199                    return a.F < b.F;
     200                }
    195201                return a.Pts < b.Pts;
    196202            });
  • amilia-store/trunk/amilia-store.php

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