boon/src/main/java/org/boon/sort/Ordering.java
public static <T> T max( T[] array, String sortBy ) {

        if ( array.length > 1 ) {
            Sorting.sortDesc(array, sortBy);

            return array[0];
        } else {
            return null;
        }
    }
public static <T> T max( T[] array, String sortBy ) {

        if ( array.length > 1 ) {
            Sorting.sortDesc(array, sortBy);

            return array[0];
        } else {
            return null;
        }
    }
public static < T > T max ( T [ ] array , String sortBy ) { if ( array . length > 1 ) { Sorting . sortDesc ( array , sortBy ) ; return array [ 0 ] ; } else { return null ; } }
Returns the max value of the object with the property given.

@param array
@param sortBy
@param <T>
@return
Returns the max value of the object with the property given .