package dataBase;

import java.util.Comparator;

public class PictureBufferElementComparator implements Comparator<PictureBufferElement>{

	@Override
	public int compare(PictureBufferElement o1, PictureBufferElement o2) {

		float val1 = p1.distance_ToSearchPic[threadID];
		float val2 = p2.distance_ToSearchPic[threadID];
		
		if(val1 > val2)
			return 1;
		else if(val1 < val2)
			return -1;
		else
			return 0;
	}
	
}
