Ordering by Z index?

I have a bunch of sprite objects which I’m assigning a .z property to order their z-index from back to front (as I need a more fine grained solution than tofront() and toback()). Given such a .z property, how would I reorder my table in every frame (or as needed)? The objects are already drawn, I need to reorder dynamically. I understand that the table index serves as z-index…

(Wonder if it would make sense to have such a .z propety come with Corona by default, independent of being the table index?)

Thanks! [import]uid: 10284 topic_id: 9566 reply_id: 309566[/import]