code: @SuppressWarnings("unchecked")
      public void sort(List<?> list, Class<?> type,
                       String property, boolean reverse) {
          BeanComparator comparator = 
              newBeanComparator(type, property, reverse);
          Collections.sort(list, comparator);
      }
docs: Sort the given list by using the given property to evaluate against
  each element in the list comparing the resulting values. For example,
  if the object list contained User instances that had a lastName
  property, then you could sort the list by last name via:
  <code>sort(users, 'lastName', false)</code>. This ensures that each
  element in the list is of the given type and uses the given type to
  perform the property lookup and evaluation.
  
  @param list The list to sort
  @param type The type of elements in the array
  @param property The name of the property on the elements to sort against
  @param reverse The state of whether to reverse the order