Issue #829464 by Berdir, Github sync, sepgil: Orderby() should escape fields and verify direction.