the object that controls sorting
The sorting object creates a function for sorting, based on the parameters that the user passed to the sort method. Also, it can use the parameters set in the scheme.$sort.
Sorting consists of create method and as property.
The method creates and returns the function that sorts data. It takes the only parameter config. It is an object with three properties: dir, as and by.
The property is an object that includes a type of sorting and the sort function itself.