How to fix out-of-order subtitle cues
TL;DR — Repair out-of-order subtitle cues by sorting timestamps, checking overlaps, validating timing, and cleaning SRT, VTT, or ASS files before playback.
Related tool
Subtitle Cleaner Online
Out-of-order subtitle cues happen when blocks in the file are not arranged in increasing time order. The result is captions appearing at the wrong moment, jumping around, or overlapping awkwardly during playback.
Quick answer
Subtitle players assume cues are sorted by start time. If that ordering is broken, the captions will misbehave even when individual timestamps are correct. Fixing the file means re-sorting cues, rebuilding numbering when needed, and verifying that no two cues overlap unintentionally.
For SRT files, start with SRT Validator or Clean SRT File Online so timestamp order, cue numbers, and blank-line structure are easier to inspect. For mixed SRT, VTT, or ASS cleanup, use Subtitle Cleaner after the timing order is clear.
What “out-of-order” actually means
Subtitle formats like SRT, VTT, and ASS all store cues in sequence. A well-formed file looks like this:
1
00:00:01,000 --> 00:00:03,500
Welcome back.
2
00:00:04,200 --> 00:00:06,000
Today we are looking at sync issues.
When the cue blocks themselves are reordered (often after manual editing or a bad merge), playback can produce surprising results — captions appearing too early, too late, or both at once.
Common causes
- Manual cut-and-paste edits in a text editor
- Merging two subtitle files with overlapping time ranges
- Importing subtitles into an editor that re-sorts cues differently
- Bad export from a subtitle generator that does not enforce ordering
- Editing a long file and missing one block during reorganization
Step-by-step workflow
- Save a copy of the subtitle file before changing anything.
- Validate the file with SRT Validator if it is SRT, or inspect the timing blocks manually for VTT or ASS.
- Confirm that each cue’s start time is greater than or equal to the previous cue’s start time.
- If cues are out of order, sort them by start time. Any subtitle editor with a “sort by time” option can do this in one step.
- Rebuild cue numbers if the file is SRT. Clean SRT File Online can rebuild numbering and spacing after the cue order is fixed.
- Check for overlaps at the points where cues moved. If they overlap, use How to fix overlapping subtitles before uploading.
- Run the file through the Subtitle Cleaner afterward to normalize spacing and strip any leftover formatting introduced during the manual edit.
- Reopen the result in your video player to verify timing matches the spoken track.
Common mistakes
Assuming wrong order means wrong timing
If captions appear at the wrong moments, the first instinct is often to shift the whole file. A time shifter cannot fix ordering issues — it only moves all timestamps by the same amount. Confirm the ordering before applying a shift.
Not checking for overlapping cues after sorting
After reordering, two cues may now have overlapping time ranges. Some players handle this gracefully, others render captions on top of each other. Look for these overlaps and trim them manually.
Use How to fix overlapping subtitles when the cue order is correct but the end time of one cue runs into the next cue’s start time.
Leaving old SRT cue numbers in place
After sorting SRT blocks, cue numbers can become duplicated or no longer match the visible order. Rebuild numbering before upload so editors and validators do not report a separate structure problem.
Editing a VTT file without preserving the header
If the file is VTT and you accidentally remove the WEBVTT header during cleanup, browser playback will silently fail. See How to fix invalid WebVTT timestamps for related issues.
When ordering is not the real problem
If the cues are sorted correctly but timing still feels wrong, the issue is probably timing drift, not ordering. Read How to fix out-of-sync subtitles and How to fix subtitles that are too fast or too slow for those cases.
If only one section went wrong after a cut or merge point, use How to shift only part of a subtitle file instead of sorting the whole file again.
Frequently asked questions
How do I fix out-of-order SRT cues?
Sort the cue blocks by start time, rebuild cue numbers, then validate the file for overlaps, malformed timestamps, and missing blank lines before upload.
Can a subtitle validator find out-of-order cues?
Yes. A validator can flag cues whose timestamps move backward, overlap unexpectedly, or break the expected SRT or VTT structure.
Should I shift timing or sort cues first?
Sort cues first. A time shifter only moves timestamps; it cannot repair cue blocks that are in the wrong order.
What should I check after sorting subtitle cues?
Check for overlapping cues, duplicated cue numbers, missing text, broken blank lines, and whether the repaired file still loads in the target player.
Browse the cluster
See all sync and fix guides for more subtitle repair workflows.
Related guides
- Common subtitle format errors and fixes
- How to fix overlapping subtitles
- How to fix subtitle delay
- How to clean subtitle formatting before upload
Related tools
Use the Subtitle Cleaner Online
Clean subtitle files online by removing HTML tags, fixing spacing, and keeping SRT, VTT, or ASS timing intact. No signup, no upload, and everything runs locally in the browser.
Open Cleaner