public int compareTitleTo(Movie z) 
	  {
			if(getTitle().equals(z.getTitle())) {
				return 0;
			}
			int forloopLength;
			if(getTitle().length() > z.getTitle().length()) {
				forloopLength = z.getTitle().length();
			}
			else {
				forloopLength = getTitle().length();
			}
			
			for(int i = 0; i < forloopLength; i++){
		        if (getTitle().charAt(i) == z.getTitle().charAt(i)){
		        	continue;
		        }
				if (getTitle().charAt(i) < z.getTitle().charAt(i)) { return -1;}
				else { return 1; }				
			}
	      return 0;
	  }