This demo shows the server side sorting and filtering in DataViews.
Local sort and filter only apply to the current page. If you want to arrange the data on the server, set the serverSideSort and serverSideFilter options to true.
When server side sort or filter is applied, sort descriptors and filter descriptors are sent in the parameters of the loadRange callback.
Sort descriptors (params.sort) is an array, which has its element made up of a string field and a boolean ascending.
Filter descriptors (params.filter) contains a string field, a string operator, and an Array or any type value.
Try sorting and filtering the data using the drop down menus above the grid.
This demo calls some API items from the internet, make sure your internet connection is working and runing this demo with HTTP or HTTPS protocol.