public synchronized List<DataType> getSortedDataTypeList() {

		List<DataType> newList = updateDataTypeList();

		if (isStale) {
			//
			// 					Unusual Code Alert!
			// Don't save the list we just made, as it is already stale again due to changes
			// to the Data Type Managers that happened while we were building.
			//
			return newList;
		}

		dataTypeList = newList;
		return Collections.unmodifiableList(newList);
	}
Returns a sorted list of the data types open in the current tool.  The sorting of the list
is done using the {@link DataTypeComparator} whose primary sort is based upon the 
{@link DataTypeNameComparator}.

@return a sorted list of the data types open in the current tool.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/DataTypeIndexer.java