@SuppressWarnings({ "unchecked", "rawtypes" })
	@Override
	public int compare(T arg0, T arg1) {
		
		if(arg0 == null && arg1 == null)
		{
			return 0;
		}
		else if(arg0 == null)
		{
			return -1;
		}
		else if(arg1 == null)
		{
			return 1;
		}
		else
		{
		    return ((Comparable)arg0).compareTo(arg1);
		}
		
	
	}