If you want to order an object by an object reference you should add the sort field in the SQL as an left outer join, f.g.SELECT * FROM PROJECT PR LEFT OUTER JOIN PLANT PL on PR.Plant = PL-Plant