[SOLVED] default sorted column in actionAdmin

I found out in manage view (actionAdmin) records in datagrid are not sorted properly, I tried to set $sort->defaultOrder('Colum1') in order to make first column as default however the list is still unsorted. Maybe I'm wrong, could any body point out how to do it correctly ?


Did you check the generated SQL? Does it have the ORDER clause?

I've found my mistake that is placing $sort->defaultOrder below $sort->applyOrder, when I move $sort->defaultOrder up it is working correctly now !

Thanks qiang for the hint.