Built-in sorting doesn't allow this. You can use external sorting (check livedemo examples) and reset page number on sorting change.
Thank you for your help. I have found the external sort example from live demo. However, do you know what I can reset the page number in the sorting bean?