I have this kendo dropdown list in Angular how do I sort this list?
I dont see any sort param for kendo-dropdownlist on kendo website.
https://stackblitz.com/edit/angular-m6pome-dfnigx
CodePudding user response:
You can use orderBy (documentation):
public groupedData: GroupResult[] = groupBy(orderBy(this.source, [{ field: "name", dir: "asc" }]), [
{ field: "subcategory" }
]);