How can I sort the elements in gridMenu in ui-grid angular JS

94 Views Asked by At
vm.gridOptions = {
    exporterMenuCsv: false,
    enableGridMenu: true,
    columnDefs: [
      { name: 'name' },
      { name: 'gender' },
      { name: 'company' }
    ]

I want to sort the columns in gridMenu alphetically, is there any inbuilt property for these or I need to write a custom method for sorting that.

0

There are 0 best solutions below