Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sort_lookup_table [2015/09/16 19:18]
admin [Internal Name]
sort_lookup_table [2026/07/07 19:51] (current)
chrystian Document Sort Lookup Table functor
Line 2: Line 2:
  
 ===== Description ===== ===== Description =====
 +Sort the content of a lookup table.
  
 ===== Inputs ===== ===== Inputs =====
  
 ^ Name            ^ Type                                      ^ Description ​                                                    ^ ^ Name            ^ Type                                      ^ Description ​                                                    ^
 +| Values Or Ids | [[Lookup Table Type]] | The input list of values or ids. The keys are used to specify the order of the values or ids in this list. This list is used as a list of values if the additional list is not provided. Otherwise, the list is assumed to represent ids whose values are specified in the property list. |
 +
 +===== Optional Inputs =====
 +
 +^ Name            ^ Type                                      ^ Description ​                                                    ^
 +| Use Ascending Order | [[Boolean Table Type]] | If true, the list is sorted from lowest to highest (ascending order). Otherwise, the list is sorted from highest to lowest (descending order). |
 +| Properties | [[Lookup Table Type]] | List specifying the values corresponding to the ids provided by the \"​valuesOrIds\"​ list. |
 +
  
 ===== Outputs ===== ===== Outputs =====
  
 ^ Name ^ Type                                       ^ Description ​                 ^ ^ Name ^ Type                                       ^ Description ​                 ^
 +| Sorted Values Or Ids | [[Lookup Table Type]] | List of sorted values or ids. |
  
 ===== Group ===== ===== Group =====
Line 16: Line 26:
  
 ===== Notes ===== ===== Notes =====
 +
 +The keys of the input table indicate only the order of the values in the table. Therefore, the input table corresponds to a list in which the keys are the indices and the values are the elements. The same applies to the output table.
  
 ===== Internal Name ===== ===== Internal Name =====