public static SortDirection getSortDirection(String direction) {
			if (direction.equals("ascending")) {
				return ASCENDING;
			}
			return DESCENDING;
		}
Not meant to be created by users.  They should instead use the {@link TableSortStateEditor}.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/ColumnSortState.java