In the below example, grid data is sorted via remote request.

Grid sends pq_sort parameter to the remote server as mentioned in the tutorial on remote requests.