// Path: framework/src/com/ibm/datapower/er/Analytics/ConditionsNode.java
// public enum ConditionSortType {
// 	DEFAULT, TIMESTAMP
// }


import java.text.SimpleDateFormat;
import java.util.Comparator;
import com.ibm.datapower.er.Analytics.ConditionsNode.ConditionSortType;
		if (o1.getSortConditionName().length() < 1 || o2.getSortConditionName().length() < 1)
		{
			if (!o1.getSortMethod().equals("descending")) {
			if ( o1.getConditionID() > o2.getConditionID() )
				return 1;
			else
				return 0;
			}
			else
			{
				if ( o1.getConditionID() > o2.getConditionID() )
					return -1;
				else
					return 0;
			}
		}

		String condO1 = "";
		String condO2 = "";
		if (o1.getSortConditionName().equals("condensecondition")
				&& o2.getSortConditionName().equals("condensecondition")) {
			condO1 = Integer.toString(o1.getCondenseCount());
			condO2 = Integer.toString(o2.getCondenseCount());
		} else {
			condO1 = o1.getCondition(o1.getSortConditionName());
			condO2 = o2.getCondition(o2.getSortConditionName());
		}
		boolean useTimestampCompare = false;

		SimpleDateFormat fmt = null;
// Path: framework/src/com/ibm/datapower/er/Analytics/ConditionsNode.java
// public enum ConditionSortType {
// 	DEFAULT, TIMESTAMP
// }


// Path: framework/src/com/ibm/datapower/er/Analytics/ConditionSort.java
import java.text.SimpleDateFormat;
import java.util.Comparator;
import com.ibm.datapower.er.Analytics.ConditionsNode.ConditionSortType;

		if (o1.getSortConditionName().length() < 1 || o2.getSortConditionName().length() < 1)
		{
			if (!o1.getSortMethod().equals("descending")) {
			if ( o1.getConditionID() > o2.getConditionID() )
				return 1;
			else
				return 0;
			}
			else
			{
				if ( o1.getConditionID() > o2.getConditionID() )
					return -1;
				else
					return 0;
			}
		}

		String condO1 = "";
		String condO2 = "";
		if (o1.getSortConditionName().equals("condensecondition")
				&& o2.getSortConditionName().equals("condensecondition")) {
			condO1 = Integer.toString(o1.getCondenseCount());
			condO2 = Integer.toString(o2.getCondenseCount());
		} else {
			condO1 = o1.getCondition(o1.getSortConditionName());
			condO2 = o2.getCondition(o2.getSortConditionName());
		}
		boolean useTimestampCompare = false;

		SimpleDateFormat fmt = null;
		if (o1.getSortType() == ConditionSortType.TIMESTAMP && o1.getSortOption().length() > 0) {