package dataBase.search;

import java.util.Comparator;

import subPicture.SubPicture;

public class ComparatorB implements Comparator<SubPicture>{

	@Override
	public int compare(SubPicture p1, SubPicture p2) {
		
		int val1 = p1.avg.b;
		int val2 = p2.avg.b;
		
		if(val1 > val2)
			return 1;
		else if(val1 < val2)
			return -1;
		else
			return 0;
	}
	
}
