--- id: 08952bac-ce99-4b92-b9d9-edc9237c6bc6 type: fix title: "Added default ordering to PitchingStat list endpoint" tags: [paper-dynasty, postgresql, migration, ordering] importance: 0.6 confidence: 0.8 created: "2026-02-01T01:31:43.245752+00:00" updated: "2026-02-20T04:32:29.691769+00:00" relations: - target: ad7d6151-b1d9-4ee6-b31e-16bd338181f5 type: RELATED_TO direction: outgoing strength: 0.85 edge_id: 47087f18-d3c6-479b-a097-1dea13393c76 --- Added .order_by(PitchingStat.id) to the main GET list endpoint in pitstats.py (line 61) to ensure consistent row ordering for PostgreSQL compatibility. The query now reads: PitchingStat.select().join(Card).join(Player).order_by(PitchingStat.id)