Search code examples
angular-materialangular6angular-datatables

Angular Material - Data table with multiple sort


I have a requirement for a datatable to be sorted by one column, then by second column. Is there something in Angular Material that supports that? Any help will be highly appreciated.


Solution

  • In the current version of Angular Material there isn't an option for this.

    The current version can only look for one active class within the table headers.

    Are you looking for something like the following?

    https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/MultipleSorting/Angular/Light/