Fix a bug on ArraySort

Should be careful with model evaluation