Fixed #19195 -- Allow explicit ordering by a relation source field.

Thanks to chrisedgemon for the report and shaib and akaariai for the review.