The MlbStandingsAdapter never populated `divisionRank`, so every team evaluated to `divisionRank ?? 99 > 1` in `buildDivisionSections` and fell through to the wildcard section. Computes `divisionRank` per team using ESPN's existing division entry order (which already applies MLB's official tiebreakers) rather than re-sorting, then passes it through to the upsert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| afl.ts | ||
| epl.ts | ||
| espn.ts | ||
| f1.ts | ||
| index.ts | ||
| mlb.ts | ||
| mls.ts | ||
| nba.ts | ||
| nhl.ts | ||
| thesportsdb.ts | ||
| types.ts | ||
| wnba.ts | ||