1. A method for organizing a plurality of primitive areas of a page of a document, the method comprising: sorting the plurality of primitive areas into a sequence of primitive areas according to a first sorting criteria; comparing a first primitive area with a second primitive area according to a second sorting criteria, wherein the first and second primitive areas are successive primitive areas in the sequence of primitive areas; transposing the first primitive area with the second primitive area in the sequence of primitive areas if the comparison of the first and second primitive areas satisfy the second sorting criteria; and generating an ordered list based on the transposed sequence of primitive areas.