Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What to do if sort datatable is not working with custom data types?

Asked by Dipika Agarwal Mar 6, 2023 778 views 1 answer
Share

About this question

I tried creating a lightning-datatable with custom data types, but unfortunately when trying to sort a column, it does not work. I have set the columns to sortable: true but still it does not work.

Component structure

c-main-component
    |---> c-custom-datatable

One thing i noticed though, it highlights the first cell when i tried to sort it.

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.