Add a priority argument to order and handle fallbacks.