Fix joins when ordering on ir.model.field

issue3910
review10311002
(grafted from 5754ea65653441eace71fd814b75f2174fad1e70)

--HG--
branch : 3.0
extra : source : 5754ea65653441eace71fd814b75f2174fad1e70