How to fix out-of-order LRC timestamps?

"Randomization" refers to the timestamp of the lyric lines.Not sorted in ascending orderIts behavior can be quite erratic: the lyrics display may fluctuate in quality, the progress bar may jump back to the previous line, or certain lines may flash repeatedly. Many players have varying tolerances for out-of-order playback—some automatically re-sort the content, while others simply display it in the original file order. Consequently, the same set of lyrics may behave differently across various devices, which also makes it difficult to troubleshoot such issues. This page already filters the playback results based on the "Reverse Order" option; you can either review the example below or paste your own lyrics.

The file is read only locally and will not be uploaded.
Repair Options

inspection result

direction for use

How does out-of-order occur?

The most common cause isI forgot to re-sort after manually switching to single-column mode.For example, if you discover that the timestamp on line 30 is incorrect and casually change it to "01:20.00," that line may originally be on line 30, but its new timestamp should now appear earlier———the order of the lines in the file remains unchanged, yet the sequence of timestamps becomes disordered. The second scenario isCompilation of multiple song lyrics: Simply glue two recorded segments together; if their time ranges overlap (for example, if the second segment starts again from 00:10), the combined result will immediately exhibit out-of-order playback. The third approach isCopy and paste from elsewhereOnly a few middle lines were copied, and they were pasted in the wrong position.

Why do some players appear normal?

Because there are many playersAfter reading it, it will automatically sort itself., so out-of-order playback is completely undetectable on these devices. In contrast, other players—especially older models, in-car entertainment systems, and MP3 hardware players—areStrictly compare the timestamps line by line, following the order specified in the document.The issue is that whenever the playback direction is reversed, problems arise—either it gets stuck and fails to progress further, or it rolls back and replays. This creates a rather troublesome phenomenon: it works fine when tested on your computer, but becomes erratic once copied into your car. Therefore,Do not rely on the player's error tolerance.The document itself should be properly organized.

How does the tool detect "reversed order"?

The logic is straightforward: followThe order in which items appear in the documentPerform line-by-line scanning; as soon as a specific timestamp is encounteredLess than the preceding valid timestampIn such cases, this row should be marked as inverted. Note two key details: first, blank rows and rows without timestamps are excluded from the comparison (as they lack comparable timestamp values); second, itReport only; do not roll back.—that is to say, it does not assume that the entire subsequent sequence is incorrect based on a single inversion; instead, it continues to compare line by line. Consequently, a set of lyrics may exhibit multiple inversions, each of which corresponds to a genuine position in the original text.

What should you pay attention to after completing the repairs?

Reordering will onlyChange the order of rowsNo lines will be added or removed, so the number of lines should remain unchanged—after completing the repair, you can compare the number of lines in "Output N lyrics" with the number of lines before the repair. However, if this set of lyrics also contains other issues (e.g., duplicate timestamps or missing timestamps), sorting alone may not be sufficient: for instance, lines without timestamps could be sorted and pushed to the top as having 0 seconds; in such cases, you should first fill in the missing timestamps and then perform the sorting. The "No timestamps rows should be interpolated based on context" option in this page's repair settings has been removed specifically to allow you to first complete the timestamps on another page before proceeding with the sorting.

frequently asked questions

Why is the number of rows unchanged after sorting, yet it seems that their positions have all changed?

This is precisely the intended effect of sorting. Re-sorting merely reorders identical rows in ascending order of their timestamp.The number of lines will not change, nor will the content.The only thing that changes is the order. If what you want is to "remove duplicate rows," that refers to deduplication rather than sorting—please refer to the "Duplicate Time Stamps" page.

How can I quickly tell if my lyrics are in the wrong order?

No need to read line by line—just take one quick glance.The minute digit of the timestampThis is sufficient: under normal conditions, the values increase from top to bottom (00,00,01,01,02,...). Whenever the minute value in any subsequent row is smaller than that in the preceding row, an inversion has occurred. The tools on this page will automatically identify all such occurrences and indicate their corresponding row numbers.

Why is "Interpolation Completion" not available in the repair options?

This page coversOrdering issue, whereas interpolation completion addressesTimestamp deficiency issueCombining the two can make it difficult to interpret the results—interpolation may generate new rows out of thin air, rendering it impossible to verify whether the sorting is correct using the "number of rows has changed" criterion. The default settings on this page deliberately omit this option to keep the pipeline clean.

Will out-of-order processing affect the display of the lyrics?

The content itself will not change, butThe timing of the display has become completely chaotic.The player determines "which line should be displayed at this moment" based on a timestamp; if the sequence of these timestamps is disrupted, a misalignment may occur—for example, the seventh line might be displayed when only the third line should appear. Additionally, some players may remain on the previous line indefinitely if they cannot find a matching line. This is therefore a pure issue at the display layer; once the timestamp order is corrected, normal operation will be restored.

Do I need to check anything else after sorting?

We recommend taking a moment to confirm the following three points: first,Does the number of lines match the pre-repair state?(When sorting, no rows should be added or removed); secondly,Are there any remaining duplicate timestamps?(The two lines have identical durations; during playback, only one line may be displayed); thirdly,Are the metadata tags still present?([ti], [ar]: these options have been pre-selected on this page.) Each of these three items can be re-run within this tool from a different inspection perspective.

Back to All Tools