Deque deque = new Deque();
deque.add( "cat" );
deque.add( "ape" );
deque.add( "dog" );
deque.add( "bat" );
System.out.println( "unsorted = " + deque );
BinaryPredicate comparator = new GreaterString();
Sorting.sort( deque, comparator );
System.out.println( "sorted = " + deque );