Add a sort id to each entity to prevent blink when some sprites are in same z or when some entity is blinking(queue size is changing very fast).
Authored by: utunnels 2007-05-02
Parent: [r836]
Child: [r838]