Add z-order to objects.