@Override
	protected Comparator<EnumEntry> createSortComparator(int columnIndex) {
		if (columnIndex == NAME_COL) {
			return new EnumNameComparator();
		}
		else if (columnIndex == VALUE_COL) {
			return new EnumValueComparator();
		}
		else if (columnIndex == COMMENT_COL) {
			return new EnumCommentComparator();
		}
		return null;
	}
Model for the enum editor table.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/editor/EnumTableModel.java