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