public String getTextView(int yType){
		String temp = "<html><table border='1'><tr><th>Title</th><th>Author</th><th>Pub. Year</th><th>Num. Pages</th><th>Review</th><th># Reviews</th></tr>";
		ArrayList<Book> list = (ArrayList<Book>)books.clone();
		
		switch(yType){
		case TITLE:
			Collections.sort(list,new SortByTitle ());
			break;
		case AUTHOR:
			Collections.sort(list,new SortByAuthor());
			break;
		case REVIEW:
			Collections.sort(list,new SortByRating());
			break;
		case YEAR:
			Collections.sort(list,new SortByYear());
			break;
		case PAGES:
			Collections.sort(list,new SortByPages());
			break;
		}
		
		for(int i=0; i<list.size(); i++){
			Book b = list.get(i);
			temp+="<tr style='text-align:left'><td>"+b.getTitle()+"</td><td>"+b.getAuthor()+"</td><td>"+b.getPubYear()+"</td><td>"+b.getNumPages()+"</td><td>"+b.getReview()+"</td><td>"+b.getNumReviews()+"</td></tr>";
		}
		temp+="</table></html>";
		return temp;
	}