Skip to main content
Hi, 

 

I have a related list and one of the columns is not sortable, this is for company name. All other columns are sortable with a little arrow on the column name. What can I do to make this sortable? 
3 件の回答
  1. 2020年9月7日 18:59
    If it is a custom implementation-:

     

     This may help-:

     

    https://sfdcmonkey.com/2019/03/06/implement-sorting-salesforce-lightning-datatable/

     

     Related list cannot be sorted by text Are fields-:

     

    https://trailblazer.salesforce.com/issues_view?id=a1p3A000001HlSqQAK&title=unable-to-sort-list-views-by-long-text-area-fields-in-lightning

     

    Are you sorting by text Area field?

     

     This might help to understand sorting in Classic v/s lightning-

     

    https://help.salesforce.com/articleView?id=000315141&language=en_US&type=1&mode=1

     

     Also check this idea-:

     

    https://trailblazer.salesforce.com/ideaView?id=0873A000000lL7PQAU

     

    In the Classic UI, you can customize the Contacts related list and set a default sort column and sort order. All users displaying the Contacts related list will see the same default column sort and sort order. In the Lightning UI this is not the case. There is a control for setting the default sort, but it does not work. The sorting for such a related list defaults to the last column a user sorted on. So if I set my default sort to Lastname, but manually sorted on Phone, whenever I display a Contacts related list it wil be sorted by Phone even though the default sort is set to Lastname. According to the Salesforce link below, this is considered a "feature".

     

     Thanks,

     

    Sakshi
0/9000