.. _functx_sort-document-order:
==========================
functx:sort-document-order
==========================
Sorts a sequence of nodes in document order
Description
~~~~~~~~~~~
The functx:sort-document-order function sorts a sequence of nodes in document
order. This can be done with a simple path expression, but the function is
useful for making the purpose of the expression clear.
.. list-table::
:widths: 40 60
:header-rows: 1
* - **Parameters**
- **Description**
* - seq:node()
- the sequence to sort
Examples
~~~~~~~~
.. list-table::
:widths: 50 50
:header-rows: 1
* - **XPath**
- **Results**
* - functx:sort-document-order(($in-xml/c,$in-xml/a))
- 123 789
See Also
~~~~~~~~
.. toctree::
:titlesonly:
:glob:
* :ref:`functx_sort`.
* :ref:`functx_sort-as-numeric`.
* :ref:`functx_sort-case-insensitive`.