Vaadin 14.4.0 make Grid ComponentColumns sortable

Hello,

is it possible to sort component columns in Grid. (E.g Checkbox Columns)
It dont work on the fly with:

	@Override
	public <V extends Component> Column<T> addComponentColumn(ValueProvider<T, V> componentProvider) {
		Column<T> col = super.addComponentColumn(componentProvider);
		col.setSortable(true);
		return col;
	}

Best
Jan

Use col.setComparator to add a Comparator to that column; otherwise Grid can’t know how the data should be sorted.

Tank You! I found this thread: https://vaadin.com/forum/thread/17476127/grid-sortingproerties-issue-with-componentrenderer … My Question was already answered, sorry.

Best Jan