Actually,
sortByChange and sortOrderChange is the outputs directives of angular-6-datatable and we can use
these parameters for custom sorting (sort by parameter and sort order parameter).
In
the blog example, I’m using the default short – mfDefaultSorter.