forked from: Z-Sorting and drawTriangles()

a z-sorting example using drawTriangles()

more info here : http://actionsnippet.com/?p=2080