title: Any utility method to sort java.util.List containing POJOs of the kind of apache-* libraries
body: <p>Is there any kind of utility method to sort Lists like the following one:</p>
  
  <pre><code>POJO pojo1 = new POJO();
  pojo1.setFoo("abc");
  
  POJO pojo2 = new POJO();
  pojo2.setFoo("abc");
  
  List theList = new ArrayList&lt;POJO&gt;();
  theList.add(pojo1);
  theList.add(pojo2);
  
  SortUtils.sort(theList, "foo", SortType.ALPHABETICAL, SortDirection.ASC)
  </code></pre>
  
  <p>EDIT: Thanks for your answers but I know that you can make the POJO implement Comparable or use Collections.sort(list, Comparator) but creating an anonymous class looks like overwhelming for quick sorting needs, I'm looking for something like an utility method that uses reflection to access attribute values and sort elements</p>