Add sorted moving window operator and test #423