Search with Sort

Hello!

My view retrivies me a quey result of a supplied data form. Im output it as a datagrid table. Im using  CSort. When I sort any field, it shows default data and trow away my table with query result.

Is there a specific way to build form searchs in Yii using Csort?

How could I mantain my query results while using pagination?

You need to have a way to remember those query parameters (e.g. pass them in GET variables or store in session).