Topic: Datatable default sorting
                  
                  Lumpenstein
                  free
                  asked 6 months 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
                      
                      Arkadiusz Idzikowski
                      staff
                        answered 6 months ago
                    
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.
Lumpenstein free commented 5 months ago
Okay thanks, would be a nice feature so that the users can easily see by what column I sort the data by default.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: 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