sort

| Name | Type | Description | Optional |
|---|---|---|---|
input |
vector<?0> |
a vector to be sorted |
no |
| Name | Type | Description | Optional |
|---|---|---|---|
output |
vector<?0> |
the sorted input vector |
no |
sort reads its input port and outputs the result of sorting it. To sort a list, convert it to a vector first using list2vector and convert the result back to list with vector2list if desired.