LiteralExpr literalExpr1 = (LiteralExpr)o1;
LiteralExpr literalExpr2 = (LiteralExpr)o2;
cmp = literalExpr1.getLiteral().compareTo(literalExpr2.getLiteral());
break;
case TYPE_LOCATION_PATH:
LocationPath locationPath1 = (LocationPath)o1;
LocationPath locationPath2 = (LocationPath)o2;
if (locationPath1.isAbsolute() == locationPath2.isAbsolute())
{
cmp = compareLists(locationPath1.getSteps(), locationPath2.getSteps());
}
else if (locationPath1.isAbsolute())
{
cmp = 1;
}