Refactor _includes_in_order method