ArrayDataProvider default sorting

Hi guys,

I have a little problem. I have a grid that is filled with data from an ArrayDataProvider. I have to use an ArrayDataProvider, because I have to set the data myself at this moment. It’s fine as it works so far.

There is only one problem. I want my grid to be sorted by name by default. At this moment the grid is loaded the way the ArrayDataProvider is set. The problem is that the name is set Yii::t(’’). So the value/name is translated. I can not default sort the array like you can with a ActiveDataProvider. So I was looking for a method to auto sort the grid, but can not find a solution.

Does anyone have a tip for me, how to resolve this?