private static void resetEmphasis(JTable table) {
		// clear all emphasis state
		TableColumnModel columnModel = table.getColumnModel();
		int n = columnModel.getColumnCount();
		for (int i = 0; i < n; i++) {
			TableColumn column = columnModel.getColumn(i);
			TableCellRenderer renderer = column.getHeaderRenderer();
			if (renderer instanceof GTableHeaderRenderer gRenderer) {
				gRenderer.setSortEmphasis(-1);
			}
		}
	}
Attempts to sort the given table based upon the given column index.  If the {@link TableModel}
of the given table is not a {@link SortedTableModel}, then this method will do nothing.
<p>
If the given column index is not sortable, then this method will not change the state of
the model. The results of calling this method depend upon the current sorted state
of the given column:
<ol>
  <li>if the column is not yet sorted, then the column is made sorted, if sortable,
  <b>and any other sorted columns will not be changed</b>, or</li>
  <li>if the column is sorted, then:
    <ol>
     <li>if there are other sorted columns, this column will no longer be sorted</li>
     <li>if there are no other sorted columns, then no action will be taken</li>
    </ol>
  </li>
</ol>

@param table The table whose model shall be sorted.
@param columnIndex The column index upon which to sort.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/TableUtils.java