Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.saxon.expr.sort
Interface Sortable

All Known Implementing Classes:
  DocumentOrderIterator, SortedGroupIterator, SortedIterator, SortedTupleIterator

    public interface Sortable

A Sortable is an object that can be sorted using the QuickSort method.

Author:
  Michael H. Kay

Method Summary
`int` | `compare(int a, int b)` Compare two objects within this Sortable, identified by their position.
`void` | `swap(int a, int b)` Swap two objects within this Sortable, identified by their position.

Method Detail

### compare

    int compare(int a,
                int b)

  Compare two objects within this Sortable, identified by their position.

  Returns:
    <0 if obj[a]0 if obj[a]>obj[b]

### swap

    void swap(int a,
              int b)

  Swap two objects within this Sortable, identified by their position.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.