Checking if order isset in getOrderedJoins for php 5.4 strictness.