package dataBase;

import java.util.Comparator;

public class PictureBufferElementComparator implements Comparator<PictureBufferElement>{

	@Override
	public int compare(PictureBufferElement p1, PictureBufferElement p2) {

		String val1 = p1.file.getAbsolutePath();
		String val2 = p2.file.getAbsolutePath();
		
		return val1.compareTo(val2);
		
//		if(val1 > val2)
//			return 1;
//		else if(val1 < val2)
//			return -1;
//		else
//			return 0;
	}
	
}
