| Syntax |
table.sortBy (column)
|
| Params |
column is a string containing "Name" or "Value" or "Kind"
|
| Action |
Sorts the table in the target window in descending order based on the contents of column.
|
| Returns |
True unless column is not one of the three valid strings, in which case it returns false.
|
| Examples |
Select or open the examples table. Unless you have changed it, this table is sorted by "Name." Type and execute:
table.sortBy ("Kind")
» true
Observe the results. To return to its original sorted order, you can either click on the "Name" label at the top of the table window or type and execute:
table.sortBy ("Name")
» true
|
| Errors |
If the target window does not contain a table, an error message will be displayed.
|