Thanks a lot! It works sorting the objects.

What do you mean with "Z writes disabled"? I'm rather new to 3D programming.