CGridView search/select deactivated after sort

Hi all.

New Yii user here.

I have used Gii to create the CRUD for several tables and have now,I believe, understood how to get the manage/Admin view working well even for Many_Many relations.

There is one problem I have found with all the CGridView solutions, even those I have not touched but strait out of the Gii box, so to speak. The problem is that search/select works perfectly except after using sort once or twice. Once sort has been used it appears to disable the search/select function.

Has anyone else found this and what is the solution?

Thanks in advance

This problem manifests itself after sort is used on two separate columns?