public void setSortState(TableSortState state) {
		AtomicReference<IllegalArgumentException> ref = new AtomicReference<>();
		Swing.runNow(() -> {
			try {
				model.setTableSortState(state);
			}
			catch (IllegalArgumentException e) {
				ref.set(e);
			}
		});
		IllegalArgumentException exception = ref.get();
		if (exception != null) {
			// use a new exception so the stack trace points to this class, not the runnable above
			throw new IllegalArgumentException(exception);
		}
	}
Sets the column sort state for this dialog.   The {@link TableSortState} allows for
combinations of sorted columns in ascending or descending order.

<P>This method should be called after all custom columns have been added via
{@link #addCustomColumn(ColumnDisplay)}.

@param state the sort state
@see #setSortColumn(int)
@throws IllegalArgumentException if an invalid column is requested for sorting
Ghidra/Features/Base/src/main/java/ghidra/app/tablechooser/TableChooserDialog.java