however, thanks to anubis, I am now past a major problem I was having.
In case you're wondering, I was doing depth sorting. When comparing two points I was trying to translate the origin by the current matrix and compare the points as they are with it. Anubis pointed out that I could just translate the points, and compare z values. Same thing, in reverse. I'd been too stupid to see it . Anyways, back to the coding!