introduce order in VariableRangeWithLearning