Order Joins Draft

Currently produces errors in tests; calls to orderJoins always returns
null.