added order by in has many relation