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

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