public ArrayList<Photo> getPhotosByTag(ArrayList<String> tagValues) {
		ArrayList<Photo> photos = new ArrayList<Photo>();
		Collection<Album> albums = GuiView.control.getCurrentUser().getAlbumList().values();
		ArrayList<Album> a = new ArrayList<Album>(albums);
		for (int x = 0; x < a.size(); x++) {
			Collection<Photo> photoCollection = a.get(x).getPhotoList().values();
			ArrayList<Photo> p = new ArrayList<Photo>(photoCollection);
			for (int y = 0; y < p.size(); y++) {
				for (int z = 0; z < tagValues.size(); z++) {
					if (p.get(y).getTagList().containsKey(tagValues.get(z)) && !photos.contains(p.get(y)))
						photos.add(p.get(y));
				}
			}
		}
		DateComparator dc = new DateComparator();
		Collections.sort(photos, dc);
		return photos;
	}