title: How do you alphabetize the order of Strings using Arrays.sort()?
body: <p>I'm working on review problems for an exam and one of the problems ask that I alphabetize book titles in order. I am asked to ignore the word "The", if it appears in the beginning of a title. My question is, is there a way to sort the title order of books while ignoring "The" using Arrays.sort()?</p>
  
  <p>Originally I put the books in an Array list called <strong>books</strong> and then applied:</p>
  
  <pre><code>Arrays.sort(books);
  </code></pre>
  
  <p>It worked but only to some extent because it wouldn't ignore "The". Instead is it better to do:</p>
  
  <pre><code>public class booktest {
  
  public static void main(String[] args) {
      System.out.println("Enter the title of your book: "); // The Great Gatsby
      String book = IO.readString();
      if(book.substring(0, 3).equalsIgnoreCase("the")){
          book = book.substring(4);
      }
      System.out.println(book); // Output: Great Gatsby
  </code></pre>
  
  <p>And then compare the first letters of each book to output the ascending order?</p>
  
  <p>I was wondering if there was a simpler way to go about this. Any clues or suggestions would be appreciated. Thank you.</p>