Issue with grid fields sorting

Hi:

There is a tiny bug in grid,i set the “dir” value as “dsc”,but it doesn’t sort as descending order.
Please check it for me.

Code like below.

id:"grid",
view:"grid",
fields:[
  {
   id:"id",
   label:'ID_NAME',
   width:40,
   sort:{
      as:"int",
      dir:"dsc"
   }
},
...
]

The configuration of column allows to define the type of sorting, but do not apply it to the grid from the start

You can use

id:"grid", view:"grid", ready:function(){ //will be triggered after first data loading operation this.sort("id","desc"); }, fields:[ ...