You need to sign in to do that
Don't have an account?

Sort data based on column heading in table in lightning
I need to sort data based on column heading in table in lightning is there any one who has worked on same requirement in lightning?
You need to sign in to do that
Don't have an account?
Use the following mark up in your lightning component -
Note: please remove unnecessary labels and attributes for your requirement
JavaScript Controller Logic - ------------
Thanks,
Srinivas
- Please mark as solution if your problem is resolved.
Thanks!
https://salesforce.stackexchange.com/questions/149779/lightning-client-side-sorting
https://developer.salesforce.com/docs/component-library/bundle/lightning:datatable/example#lightningcomponentdemo:exampleDatatableInAction