The present disclosure provides a sequence adjustment method, an apparatus, a computer-readable storage medium, and an electronic device. The sequence adjustment method includes the steps of: upon receiving a
data stream output from a
DisplayPort transmitter, determining a first line period based on the
data stream, where the first line period is a line period of an output
clock of the
data stream, the output
clock being a
clock domain of the
DisplayPort receiver;
processing the first line period using at least a
Kalman filter algorithm to obtain a second line period, where the second line period is a line period of a source clock of the data
stream, the source clock being a clock domain of the
transmitter; and adjusting the output clock based on the second line period. The present disclosure solves the problem in the prior art that image data restored at the DP
receiver is distorted and cannot be output normally.