This is another sample of ExtendedDataModel implementation which additionally shows how to implement sorting and filtering in your model.

Model class should extend ExtendedDataTableModel and additionally implement Modifiable interface. This interface defines modify method. This method is called with lists of sort and filter fields as parameters and should perform sorting and filtering according to the fields.

Note that filtering in this sample uses contains instead of startsWith conditions.