@Override
	public int compareTo(AbstractTaskInfo o) {
		int result = getGroup().compareTo(o.getGroup());
		if (result == 0) {
			if (this instanceof GroupInfo) {
				return -1;
			}
			if (o instanceof GroupInfo) {
				return 1;
			}
			// they both must be TaskInfos
			GScheduledTask myTask = ((TaskInfo) this).getScheduledTask();
			GScheduledTask otherTask = ((TaskInfo) o).getScheduledTask();
			return myTask.compareTo(otherTask);
		}
		return result;
	}
Constructor for both group infos and task infos
@param group the GTaskGroup
@param useAnimation if true, this info will create a component that performs an
animation when shown.
Ghidra/Framework/Project/src/main/java/ghidra/framework/task/gui/taskview/AbstractTaskInfo.java