Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
sort_lookup_table [2015/09/16 19:14] admin created |
sort_lookup_table [2026/08/28 03:35] (current) hermann Sync from local documentation review |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Description ===== | ===== Description ===== | ||
| + | |||
| + | Sorts the content of a lookup table. | ||
| ===== Inputs ===== | ===== Inputs ===== | ||
| - | ^ Name ^ Type ^ Description ^ | + | ^ Name ^ Type ^ Description ^ |
| + | | Values Or Ids | [[Lookup Table Type]] | List of values or ids to sort; the keys only indicate the order of the entries in this list, so it corresponds to a plain list whose keys are indices and whose values are the elements. If Properties is not provided, this list is treated as a list of values to sort directly. Otherwise, it is treated as a list of ids, whose corresponding values are looked up in Properties. | | ||
| + | |||
| + | ===== Optional Inputs ===== | ||
| + | |||
| + | ^ Name ^ Type ^ Description ^ Default Value ^ | ||
| + | | Use Ascending Order | [[Boolean Value Type]] | If true, values or ids are sorted from lowest to highest, by the values used for comparison; if false, from highest to lowest. | True | | ||
| + | | Properties | [[Lookup Table Type]] | Lookup table mapping each id in Values Or Ids to the value used to sort it. If not provided, Values Or Ids is sorted directly as a list of values. | .none | | ||
| ===== Outputs ===== | ===== Outputs ===== | ||
| - | ^ Name ^ Type ^ Description ^ | + | ^ Name ^ Type ^ Description ^ |
| + | | Sorted Values Or Ids | [[Lookup Table Type]] | Values Or Ids reordered so that its values (or, when Properties is given, the corresponding looked-up values) are sorted, with keys reassigned as sequential indices reflecting the new order. | | ||
| ===== Group ===== | ===== Group ===== | ||
| - | [[Functor List#LookupTable | LookupTable]] | + | [[Functor List#Lookup Table | Lookup Table]] |
| ===== Notes ===== | ===== Notes ===== | ||
| + | |||
| + | The keys of Values Or Ids indicate only the order of its entries, not their content; the same is true of Sorted Values Or Ids. | ||
| ===== Internal Name ===== | ===== Internal Name ===== | ||
| - | CategoricalMapJunction | + | SortLookupTable |