OpenBIMRL | List functions
Class path: collection.list.orderBy
Sort

Description
Sorts a list in ascending (ASC) or descending (DESC) order. The reference list is sorted and the list is adjusted to it.
Input
| Input | Name | Type | Description |
|---|---|---|---|
| 0 | List | List<Object> | List |
| 1 | Reference list | List<Object> | Reference List |
| 2 | Order | String | Order (descending = desc; ascending = everything else) |
Output
| Output | Name | Type | Description |
|---|---|---|---|
| 0 | Sorted list | List<Object> | List adapted to the sorting of the reference list |
| 1 | Sorted reference list | List<Object> | sorted reference list |
Use/Example
Sample file
Download of a sample file so that the user can test the usage himself