parameters: (status, sort_by='id', sort_order='asc', limit=None)
return_statement: return query.dicts()
docstring: Return all task items in the task list filtered by status.
      The query is sorted by the self.sort_by and self.sort_order variables
      and may be limited by the limit variable.
  
      :param sort_order:
      :param sort_by:
      :param status:
      :param limit:
      :return:
docstring_summary: Return all task items in the task list filtered by status.
      The query is sorted by the self.sort_by and self.sort_order variables
      and may be limited by the limit variable.
docstring_tokens: Return all task items in the task list filtered by status . The query is sorted by the self . sort_by and self . sort_order variables and may be limited by the limit variable .
function: def build_tasks_query_full_task_list(status, sort_by='id', sort_order='asc', limit=None):
      """
      Return all task items in the task list filtered by status.
      The query is sorted by the self.sort_by and self.sort_order variables
      and may be limited by the limit variable.
  
      :param sort_order:
      :param sort_by:
      :param status:
      :param limit:
      :return:
      """
      query = Tasks.select(Tasks).where((Tasks.status == status))
  
      # Set the sort order
      if sort_order == 'asc':
          query = query.order_by(sort_by.asc())
      else:
          query = query.order_by(sort_by.desc())
  
      # Set query limit if one was given
      if limit:
          query = query.limit(limit)
  
      # Return results as dictionary
      return query.dicts()
function_tokens: def build_tasks_query_full_task_list ( status , sort_by = 'id' , sort_order = 'asc' , limit = None ) : query = Tasks . select ( Tasks ) . where ( ( Tasks . status == status ) ) # Set the sort order if sort_order == 'asc' : query = query . order_by ( sort_by . asc ( ) ) else : query = query . order_by ( sort_by . desc ( ) ) # Set query limit if one was given if limit : query = query . limit ( limit ) # Return results as dictionary return query . dicts ( )