code: public static int compareLength(String a, String b){
  		return a.length() > b.length() ? 1 : a.length() < b.length() ? -1 : 0;
  	}
docs: Will compare the length of two strings, maintaining semantics of the
  traditional {@link Comparator} by returning <i>int</i>.
  @param a first {@link String}
  @param b second {@link String}
  @return integer value of -1, 0 or 1 following this logic:<br>
  <pre>
  a.length() &gt; b.length() ? 1 : a.length() &lt; b.length() ? -1 : 0;
  </pre>