Java does not allow a function to be passed as a function argument, and its various types must be compared in different ways:
public static void
mySort( AnyType[] a,
Comparator<? super AnyType> cmp) {...}
class MyOrder implements Comparator<MyObject>
{
public int compare(MyObject x, MyObject y)
{ return ( x.property() - y.property() ); }}
Contents    Page-10    Prev    Next    Page+10    Index