Table Component Sort by Header

Hi All

I’m using Table component to display data from database. I’m using vaadin 6.8.13. The user has possiblity to filter the result per number of rows. In that case I create multiple page in the header. Here is how it’s look: Each time when user press on headers link 1,2,3 … etc I refresh the DB query based on selected page.

So such way the Table header sort work only for current table containt and not for all pages. I need refresh all the query result and sort by clicked column. I supose that I need some specific sort method on header Table listener.

How I can implement such functionality ? Please help

does that possible or not ? if you can guide me a bit will be great!