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