I wanted to ask if it was possible to cause a widget to sort by nested objects' properties. For example, if I had a data source like the one below, could I sort the data source by parent.name?
var data = [
{ student: { name: "Peter" },
parent: { name: "Sally"}
},
{ student: { name: "Steven" },
parent: { name: "Logan"}
},
{ student: { name: "Michael" },
parent: { name: "Liz"}
}
];
The hierarchical data source api doesnt have anything on sorting, and the normal datasource api shows how to sort, but not for hierarchical structures.
Thanks for help!
var data = [
{ student: { name: "Peter" },
parent: { name: "Sally"}
},
{ student: { name: "Steven" },
parent: { name: "Logan"}
},
{ student: { name: "Michael" },
parent: { name: "Liz"}
}
];
The hierarchical data source api doesnt have anything on sorting, and the normal datasource api shows how to sort, but not for hierarchical structures.
Thanks for help!