Fix filter expectation with sort attribute