double array[] = { 3, 1, 5, -2, 7, 9 };
DoubleArray doubleArray = new DoubleArray( array );
BinaryPredicate comparator = new LessNumber( Double.class );
System.out.println( "unsorted = " + doubleArray );
Sorting.sort( doubleArray, comparator );
System.out.println( "sorted = " + doubleArray );