0

In this table sorting function is not working for mail room date,the icon is showing but its not functioning.

enter image description here

This is the code..

<th class="slds-is-sortable" scope="col">
                    <div class="slds-truncate">
                        Document Code
                        <button class="slds-button slds-button--icon-bare">
                            <svg aria-hidden="true"
                                class="slds-button__icon slds-button__icon--small"> <use
                                xlink:href="{!URLFOR($Resource.SLDS0102, 'assets/icons/utility-sprite/svg/symbols.svg#arrowdown')}"></use>
                            </svg>
                            <span class="slds-assistive-text">Sort</span>
                        </button>
                    </div></th>

1 Answer 1

4

SLDS only give you sort icon. They don't actually sort data for you. So you need to write your custom logic to sort the table.

You can use Order By clause of SOQL to sort the records.

5

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .