public int comparer(Comparer comparer, Task taskX, Task taskY, int colIndex)
	{
		int result = 0;
		
		if (colIndex == 0)
		{
			result = comparer.compare(taskX.getTaskID(), taskY.getTaskID());
		}
		else if (colIndex == 1)
		{
			result = comparer.compare(taskX.getTitle().toUpperCase(), taskY
					.getTitle().toUpperCase());
		}
		else if (colIndex == 2)
		{
			result = comparer.compare(taskX.getAssignedTo().getUserName()
					.toUpperCase(), taskY.getAssignedTo().getUserName()
					.toUpperCase());
		}
		else if (colIndex == 3)
		{
			result = comparer.compare(taskX.getStatus().toString(), taskY
					.getStatus().toString());
		}
		else if (colIndex == 4)
		{
			result = comparer.compare(taskX.getDueDate(), taskY.getDueDate());
		}
		else if (colIndex == 5)
		{
			result = comparer.compare(taskX.getPriority().toString(), taskY
					.getPriority().toString());
		}
		else if (colIndex == 6)
		{
			result = comparer.compare(taskX.getDescription().toUpperCase(),
					taskY.getDescription().toUpperCase());
		}
		return result;
	}