I have a raw data and is unsorted. Is it possible to pass to CArrayDataProvider and then load with sorted data to CGridView?
I have a raw data and is unsorted. Is it possible to pass to CArrayDataProvider and then load with sorted data to CGridView?
Yes, you have to use the sort property as described in API
the sort property is use to enable the attributes to be able to sort when in CGridView. What I am looking for is the data is sort before it send to CGridView.
Did you try to set the default sort order for the sorter? (sort property)
Yes, I make it… Thanks. I didn’t put defaultOrder property.