Sort by relation fields or even nested relation field

Hmm, but pagination is working on has(created_by) but I would like to paginate results. My schema is little different and I have more project on one task.