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