tablesort
.tablesort column:{Int}
order:{TableSortOrder = TableSortOrder.ASCENDING}
table:{MarkdownContent}
-> Node
Content copied to clipboard
Sorts a table based on the values of a column.
Example:
.tablesort {2}
| Name | Age | City |
|------|-----|------|
| John | 25 | NY |
| Lisa | 32 | LA |
| Mike | 19 | CHI |
Content copied to clipboard
Result:
| Name | Age | City |
|------|-----|------|
| Mike | 19 | CHI |
| John | 25 | NY |
| Lisa | 32 | LA |
Content copied to clipboard
Return
the sorted table
Parameters
column
index of the column (starting from 1)
order
table
table to sort