Changeset 1977710
- Timestamp:
- 11/20/2018 10:24:51 PM (7 years ago)
- Location:
- amilia-store/trunk
- Files:
-
- 2 edited
-
amilia-store.php (modified) (1 diff)
-
shortcodes/amilia-store-standings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
amilia-store/trunk/amilia-store.php
r1977604 r1977710 6 6 Author: Martin Drapeau <martin.drapeau@amilia.com> 7 7 Copyright: 2014-2018 Amilia 8 Version: 2.8. 78 Version: 2.8.8 9 9 Author URI: http://www.amilia.com/ 10 10 License: Apache License 2.0 -
amilia-store/trunk/shortcodes/amilia-store-standings.php
r1977603 r1977710 237 237 teams.push(team); 238 238 } 239 teams.sort(function(a, b) {240 if (a.Pts == b.Pts) {241 if (a. F == b.F) {239 if (sport == 'football') 240 teams.sort(function(a, b) { 241 if (a.Pts == b.Pts) { 242 242 if (a.GD == b.GD) return 0; 243 243 return a.GD < b.GD ? 1 : -1; 244 244 } 245 return a.F < b.F ? 1 : -1; 246 } 247 return a.Pts < b.Pts ? 1 : -1; 248 }); 245 return a.Pts < b.Pts ? 1 : -1; 246 }); 247 else 248 teams.sort(function(a, b) { 249 if (a.Pts == b.Pts) { 250 if (a.F == b.F) { 251 if (a.GD == b.GD) return 0; 252 return a.GD < b.GD ? 1 : -1; 253 } 254 return a.F < b.F ? 1 : -1; 255 } 256 return a.Pts < b.Pts ? 1 : -1; 257 }); 249 258 250 259 var html = '';
Note: See TracChangeset
for help on using the changeset viewer.