Salesforce

Salesforce

Lighting Data Table Sorting while we are using hyper link with Label

Sample Code: Component: <aura:component implements="force:appHostable"          controller="AccountListController">                          <aura:attribute type = "Account[]" name = "acctList"/>       <aura:attribute name = "mycolumns" type = "List"/>       <aura:attribute name = "sortedBy" type = "String" default = "Name"/>       <aura:attribute name = "sortedDirection" type = "String" default = "asc"/>              <aura:handler name = "init" value ="{! this }" action = "{! c.fetchAccounts }"/>              <lightning:datatable data = "{! v.acctList }"                             columns = "{! v.mycolumns }"                             keyField = "id"                            hideCheckboxColumn = "true"                            onsort = "{! c.updateColumnSorting }"                            sortedBy = "{! v.sortedBy }"                              sortedDirection = "{! v.sortedDirection }"/>          </aura:component>   Component Controller: ({              fetchAccounts : function( component, event, helper ) {                      component.set( 'v.mycolumns', [               {label: 'Account Name', fieldName: 'linkName', type: 'url', sortable: true,    ....