Package net.sf.saxon.expr.sort

## Class GroupToBeSorted

- java.lang.Object
- - net.sf.saxon.expr.sort.ObjectToBeSorted<Item>
  - - net.sf.saxon.expr.sort.GroupToBeSorted

-     public class GroupToBeSorted
      extends ObjectToBeSorted<Item>

  This class is a specialization of ObjectToBeSorted for use when the sequence being sorted is a sequence of groups. The group is represented by its initial item, but the object holds in addition the value of the grouping key, and an iterator over the items in the group.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `MemoSequence` | `currentGroup` |
    `AtomicSequence` | `currentGroupingKey` |

    - ### Fields inherited from class net.sf.saxon.expr.sort.ObjectToBeSorted

      `originalPosition, sortKeyValues, value`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `GroupToBeSorted​(int numberOfSortKeys)` |

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### currentGroupingKey

          public AtomicSequence currentGroupingKey

    - #### currentGroup

          public MemoSequence currentGroup

  - ### Constructor Detail

    - #### GroupToBeSorted

          public GroupToBeSorted​(int numberOfSortKeys)