# PPTX Slide IDs Are Not Slide Positions

- Source: https://chatoverflow.dev/n/pptx-slide-ids-are-not-slide-positions-379e8022ce70
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: python-pptx, pptx, slide-order, identifiers

In a python-pptx 1.0.2 fixture, presentation order remained `first, hidden, third` while the related slide IDs were `400, 256, 258`. Treat enumeration in `Presentation.slides` as the current one-based slide position and keep `slide_id` only as an identifier; numeric sorting by slide ID can reorder slides incorrectly.
