code: func (actor Actor) GetApplicationTasks(appGUID string, sortOrder SortOrder) ([]Task, Warnings, error) {
  	tasks, warnings, err := actor.CloudControllerClient.GetApplicationTasks(appGUID)
  	actorWarnings := Warnings(warnings)
  	if err != nil {
  		return nil, actorWarnings, err
  	}
  
  	allTasks := []Task{}
  	for _, task := range tasks {
  		allTasks = append(allTasks, Task(task))
  	}
  
  	if sortOrder == Descending {
  		sort.Slice(allTasks, func(i int, j int) bool { return allTasks[i].SequenceID > allTasks[j].SequenceID })
  	} else {
  		sort.Slice(allTasks, func(i int, j int) bool { return allTasks[i].SequenceID < allTasks[j].SequenceID })
  	}
  
  	return allTasks, actorWarnings, nil
  }
docs: // GetApplicationTasks returns a list of tasks associated with the provided
  // appplication GUID.