Vaadin 14 - How to make a custom colum with cstom renderer in a Grid sortab

Hi there, I like to know how I can make a custom column which have its own renderer sortable? I have seen the “setSortable(true)” method on the column class but in my case this is not ggod enough, the colum sort widgets get enabled, but it gets not sorted when I click on these. So what do I need to do? Any examples around?

Thank you

fooColumn.setComparator(Comparator.comparing(item -> item.getFoo()));

Thank you very much, somehow I missed that method ; )