search order for join tables