This is used to power the ordering parameters of dplyr's window functions
with_order(order_by, fun, x, ...)
order_by
vector to order by
fun
window function
x, ...
arguments to f
f