Support for ordering with nested objects in SQL: allows to use .order('parent.field') after .prefetch('parent')