code: public boolean isInState(JComponent c) {
          String sortOrder = (String) c.getClientProperty("Table.sortOrder");
  
          return sortOrder != null && ("ASCENDING".equals(sortOrder) || "DESCENDING".equals(sortOrder));
      }
docs: {@inheritDoc}