Hello,
In my grid, I’m wanting to sort by column name. I have this stackblitz example here: https://stackblitz.com/edit/github-dcz87q?file=src%2Fapp%2Fapp.component.ts
When I add the sortOrder property to the object for firstName and set it to ‘asc’ for ascending order, once the app loads, the columns are not sorted in alphabetical order. Is that the way to do it?
this.grid.columns = <GridColumn[]>[
{
label: ‘First Name’,
dataField: ‘firstName’,
columnGroup: ‘name’,
sortOrder: ‘asc’, // here
},
Thanks