private Comparator<RestaurantReview> getComparator(String sortField) {
			
			Comparator<RestaurantReview> compRevs = null;
			
			if(sortField.equals("name")) {
				compRevs = 
						new Comparator<RestaurantReview>(){
							public int compare(RestaurantReview r1, RestaurantReview r2){
								return r1.getName().toLowerCase().compareTo(r2.getName().toLowerCase());
						}
				};
			}
			
			if(sortField.equals("reviewer")) {
				compRevs =
						new Comparator<RestaurantReview>() {
							public int compare(RestaurantReview r1, RestaurantReview r2){
								return r1.getUsername().toLowerCase().compareTo(r2.getUsername().toLowerCase());
							}
				};
			}
			
			else if(sortField.equals("location")){
				compRevs = 
						new Comparator<RestaurantReview>(){
							public int compare(RestaurantReview r1, RestaurantReview r2){
								return r1.getLocation().toLowerCase().compareTo(r2.getLocation().toLowerCase());
						}
				};
			}
			else if(sortField.equals("type")){
				compRevs = 
						new Comparator<RestaurantReview>(){
							public int compare(RestaurantReview r1, RestaurantReview r2){
								return r1.getType().toLowerCase().compareTo(r2.getType().toLowerCase());
						}
				};
			}
			else if(sortField.equals("date")){
					compRevs = 
						new Comparator<RestaurantReview>(){
							public int compare(RestaurantReview r1, RestaurantReview r2){
								try 
								{
									SimpleDateFormat dateFormat = new SimpleDateFormat("MM-dd-yy");
									Date d1 = dateFormat.parse(r1.getDate());
									Date d2 = dateFormat.parse(r2.getDate());
									return d1.compareTo(d2);
								}
								catch (ParseException e) 
								{
									return 0;
								}
							}
					};
			}
			else if(sortField.equals("stars")){
				compRevs = 
						new Comparator<RestaurantReview>(){
							public int compare(RestaurantReview r1, RestaurantReview r2){
								return r1.getStars() - r2.getStars();
						}
				};
			}
			else if(sortField.equals("rating")){
				compRevs = 
						new Comparator<RestaurantReview>(){
							public int compare(RestaurantReview r1, RestaurantReview r2){
								return r1.getRating().toLowerCase().compareTo(r2.getRating().toLowerCase());
						}
				};
			}
			return compRevs;
		}