You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling the sort method to sort a list, the corresponding 'asc' or 'desc' class isn't added to the sort button on the page.
It also appears that adding an 'asc' or 'desc' class directly in the markup will actually get stripped out by the script so there's no way to sort something by default AND have the class in order to help style the sort button differently.
Related feature request:
It would be awesome if adding the class or a data-sort-order="asc" attribute or something similar to the sort button would actually apply the specified sort as a default sorting for the list and make sure to maintain the 'asc' or 'desc' class.
Edit: See #301 which implements a default sort attribute.
The text was updated successfully, but these errors were encountered:
When calling the sort method to sort a list, the corresponding 'asc' or 'desc' class isn't added to the sort button on the page.
It also appears that adding an 'asc' or 'desc' class directly in the markup will actually get stripped out by the script so there's no way to sort something by default AND have the class in order to help style the sort button differently.
Related feature request:
It would be awesome if adding the class or a
data-sort-order="asc"
attribute or something similar to the sort button would actually apply the specified sort as a default sorting for the list and make sure to maintain the 'asc' or 'desc' class.Edit: See #301 which implements a default sort attribute.
The text was updated successfully, but these errors were encountered: