Handle orderBy direction
Handle text search on related entities