Eleroux, I wish the article was still around, but is demonstrated with screen shots how it worked.

Anyway, for anyone interested, I found a solution to sorting problems on entities with alpha transparency texture in the improved overlay shader (thanks to MK_1):

Code:

material right_alpha_mat
{
effect =
"
technique right_alpha1
{
pass p0 {zWriteEnable=true; alphaTestEnable=true;}
}
";
}

action right_alpha_acc
{
my.material = right_alpha_mat;
my.dynamic = off;
}