Allow orderBy to reference associations
Merge pull request #1146 from c960657/order-by-assoc

Allow orderBy to reference associations