Rubbish static preview (looks a bit cooler when animated):

Anyway, my question is:
I need to sort an array of TILE_1s into my GsOT, but there are no GsSort* methods for TILE primitives (or even standard primitives). I'm drawing them directly with DrawPrim right now, but that's going to get ambiguous real quick.
Is it possible to place the TILE_1s into my GsOT_TAG array manually? It's probably possible to use AddPrim with a u_long*, but that's not ideal. It'd be great to be able to sort them automagically with some kind of method that acts upon a GsOT.
Thanks for any help!