If you use an XML model for data binding, sorting and filtering is implemented in
JavaScript because all data is available on the client.
Context
You can use custom methods for sorting and filtering in an XML model. To define custom
methods, set the
fnCompare method on the Sorter object or the
fnTest method on the Filter object after creating it.