get assignments order by id