use a stateful filter for Sort
checkpoint