Skip to content
Jose Luis Cercos-Pita edited this page Feb 17, 2025 · 1 revision

Sort

This tool can sort an Array variable of arbitrary type (see the available types). In general, for variables of type size_t* the the radix-sort tool is recommended instead.

The following mandatory attributes should be set:

  • in: The Array to be sorted
  • perm: The permutations to sort indexes
  • inv_perm: The permutations to unsort indexes

This tool is internally used by the Link-List tool if the sorter attribute is set as sort.

Following an example of a sort tool XML element:

<Tool action="insert" before="some marker" name="sorter" type="sort" in="rho" perm="id_sorted" inv_perm="id_unsorted" />
Clone this wiki locally