Media timeline sorting is described. In an implementation, a method
includes receiving a media timeline at an application programming
interface, in which, the media timeline includes a plurality of timeline
objects. One or more of the timeline objects reference a respective one
of a plurality of media. A plurality of segments is generated from the
media timeline for sequential rendering such that each segment references
a particular set of the timeline objects that are rendering during a
duration of the segment.