simplify order's signature, allowing scala functions to be passed in without contortions