Adding an ordered list attribute to text objects which describes the order of appearance of entities in the text