Class ArraySort

All Implemented Interfaces:
Callable, Function, GroundedValue, Item, Sequence

public class ArraySort extends SystemFunction
Implementation of the extension function array:sort(array, function) => array
  • Constructor Details

    • ArraySort

      public ArraySort()
  • Method Details

    • call

      public ArrayItem call(XPathContext context, Sequence[] arguments) throws XPathException
      Create a call on this function. This method is called by the compiler when it identifies a function call that calls this function.
      Parameters:
      context - the XPath dynamic evaluation context
      arguments - the actual arguments to be supplied
      Returns:
      an expression representing a call of this extension function
      Throws:
      XPathException - if a dynamic error occurs within the function
    • compareSortKeys

      public static int compareSortKeys(GroundedValue a, GroundedValue b, AtomicComparer comparer)