--- id: 0670d2c7-f7bf-4244-bc9a-71d4a9a1130e type: fix title: "Added default ORDER BY id to MlbPlayer.select() endpoint" tags: [paper-dynasty, postgresql, migration, orm, ordering] importance: 0.6 confidence: 0.8 created: "2026-02-01T01:29:45.531216+00:00" updated: "2026-02-01T01:29:45.531216+00:00" --- Added .order_by(MlbPlayer.id) to the GET /mlbplayers list endpoint (line 85 in mlbplayers.py). This ensures consistent row ordering for PostgreSQL migration compatibility and prevents non-deterministic results across database backends.