<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_by_project(self, project_id, params={}, **options):
 """Returns the compact task records for all tasks within the given project, ordered by their priority within the project. Parameters projectId : {Id} The project in which to search for tasks. [params] : {Object} Parameters for the request """

        path = "/projects/%s/tasks" % (project_id)
        return self.client.get_collection(path, params, **options)