I have an attribute Grade with values between 0 and 20. I would like to override any value x with a 0 if x<10 and a 1 otherwise. Hence, MathExpression with the expression ifelse(A<10,0,1) and ignoreClass=False. Applying this filter does not work if Grade is placed at the bottom of the attributes list, but it works correctly if Grade is placed somewhere else.

Why does this happen? I am tired of reordering the attributes list, then applying the MathExpression and finally undoing the reordering.

Note: I am using Weka 3.8.1.