I have seen that this happened to many people, but none of the solutions worked for me. So I will show my code to see if somebody has an idea.
I'm using Primefaces. I have a DataTable and I want to sort the columns. The Sortby feature does not work. When you click on it, it does nothing. Instead, if you write something in the filter and then sort, it works.