mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Add reference info for sort() method for Table class
This commit is contained in:
@@ -4214,12 +4214,21 @@ public class Table {
|
||||
|
||||
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
|
||||
/**
|
||||
* Sorts (orders) a table based on the values in a column.
|
||||
*
|
||||
* @webref table:method
|
||||
* @brief Orders a table based on the values in a column
|
||||
* @param columnName the name of the column to sort
|
||||
* @see Table#trim()
|
||||
*/
|
||||
public void sort(String columnName) {
|
||||
sort(getColumnIndex(columnName), false);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param column the column ID, e.g. 0, 1, 2
|
||||
*/
|
||||
public void sort(int column) {
|
||||
sort(column, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user