title: Sorting an Array List of String[] arrays
body: <p>I am reading in a <code>.csv</code> file sort of like a spreadsheet in excel. There are a certain number of columns, determined by the file, and I read each line into a string array using the <code>.split(",")</code> method. I then put this into an array list so it can hold all of the string arrays without giving it a specific size. However, when I go to sort the array list using <code>Collections.sort()</code>, the program breaks. What could the problem be? Here is my code to sort:</p>
  
  <pre><code>Collections.sort(stringList, new Comparator &lt; String[] &gt; () {
      public int compare(String[] strings, String[] otherStrings) {
          return -1 * (strings[sortNum].compareTo(otherStrings[sortNum]));
      }
  });
  </code></pre>