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!

views:1970 update:2011/10/2 9:44:12
corona forums © 2003-2011