private static class ComponentComparitor implements Comparator
{
public int compare(Object left, Object right)
{
IComponent leftComponent;
String leftId;
IComponent rightComponent;
String rightId;
if (left == right)
return 0;
leftComponent = (IComponent) left;
rightComponent = (IComponent) right;
leftId = leftComponent.getId();
rightId = rightComponent.getId();
return leftId.compareTo(rightId);
}