com.icl.saxon.sort
public abstract class QuickSort extends Object
UNKNOWN: Patrick C. Beard (beard@netscape.com) Java Runtime Enthusiast -- "Will invoke interfaces for food." This code reached me (Michael Kay) via meteko.com; I'm assuming that it's OK to use because they copied it freely to me. Modified by MHK in May 2001 to sort any object that implements the Sortable interface, not only an array.
Method Summary | |
---|---|
static void | sort(Sortable a, int lo0, int hi0) This is a generic version of C.A.R Hoare's Quick Sort
algorithm. |
Parameters: a a Sortable object lo0 index of first element (initially typically 0) hi0 index of last element (initially typically length-1)