Allow ordering by association columns when eager-loading in SQL
Fix sorting breakage in Mongo caused by association sorting in SQL