Datatable default sorting


Topic: Datatable default sorting

Lumpenstein asked a week ago

Just a quick question:

Is there a way to define a default sort for datatables (so that the sort arrow is visible from the start) ?

In the documentation the custom cell formatting example seems to have it on the Purchases column, but I cannot figure out how.

https://mdbootstrap.com/docs/angular/data/datatables/#section-cell-format

BR, Lumpi


Setting default sorting direction for a column is not officially supported yet. We will update the mentioned example in the documentation as this may be misleading.

This feature is on our to-do list but don't know when it will be added yet.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: MDB5 7.1.0
  • Device: PC
  • Browser: Edge (latest)
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes