Angular 4 Sort Table By Column. The index property can be used to create an index for the table. - GitHub - brunano21angular-4-data-table.
Click Name to sort by names and Country to sort by country. An Angular 5 data table with pagination sorting expandable rows row selection etc. I added to the stackblitz some more students and another column with level to sort.
You can learn and see bellow example.
Click again and the sorting direction will be descending Z to A. We can use the Angular directive approach for this. The REST API sorts the data by the first column. Powered by Google 2010-2018.