Loop instead of forEach for order set.

Probably not much of a perf improvement but since people are hammering
on benchmarks in other issues it seems good in general to minimize
amount of functions created.