public int sortTasksByPriority(List<Task> tasksTemp){
		if(this.tasks==null || this.tasks.size()==0){
			return -1;
		}
		Collections.sort(tasksTemp,new Comparator<Task>(){
			public int compare(Task task1, Task task2) {   
				return task1.getPriority().compareTo(task2.getPriority());
			}   
		});
		return tasksTemp.get(tasksTemp.size()-1).getPriority();
	}