new Comparator<Element>()
{
public int compare( final Element a,
final Element b )
{
final ActionHandlerFactoryDef x = (ActionHandlerFactoryDef) a;
final ActionHandlerFactoryDef y = (ActionHandlerFactoryDef) b;
int res = comp( x.getAction().content(), y.getAction().content() );
if( res == 0 )
{
res = comp( x.getImplClass().text(), y.getImplClass().text() );
}
return res;
}
}