transformations:sort
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
transformations:sort [2014/10/03 21:45] – dmitry | transformations:sort [2021/03/29 01:19] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Sort ===== | + | {{ transformations: |
+ | ====== | ||
+ | Category: Transform / Basic\\ | ||
- | Sort table by one or more columns in ascending or descending order. Order of columns matters. | + | \\ |
+ | =====Description===== | ||
+ | This action sorts the table by one or more columns in ascending or descending order. Order of the columns matters. | ||
- | Since values of a column can be of mixed types therefore sort order depends on value type. For ascending | + | Since the values of a column can be of mixed types, the sorting |
* Errors | * Errors | ||
* Empty cells | * Empty cells | ||
Line 10: | Line 14: | ||
* Numbers | * Numbers | ||
- | In descending order, the sort order is exactly opposite. | + | In descending order, the sorting |
+ | |||
+ | \\ | ||
+ | =====Use cases===== | ||
+ | *To find the least/ | ||
+ | *To create an alphabetized list. (text) | ||
+ | *To establish a date-time ordered list. (date) | ||
+ | *To discover errors in a column by grouping them at the top/bottom of the column. | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Action settings===== | ||
+ | ^Setting^Description^ | ||
+ | |Columns|Select the column to arrange the values of. | | ||
+ | |Sort order|Options: | ||
+ | Additional columns can be added to the sorting criteria by clicking the //Sort by more columns// option.\\ | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | **Example 1 (single-column sort): | ||
+ | |||
+ | **Source table:** The longest rivers in the world | ||
+ | |||
+ | ^River | ||
+ | | Nile | 6650|Africa | ||
+ | | Amazon | ||
+ | | Yangtze | ||
+ | | Mississippi | ||
+ | | Yenisei | ||
+ | | Yellow River | 5464|Asia | ||
+ | | Ob | 5410|Asia | ||
+ | | Paraná | ||
+ | |||
+ | **Action parameters: | ||
+ | |||
+ | > Column: River | ||
+ | > Sorting order: Ascending | ||
+ | |||
+ | |||
+ | **Output table:** | ||
+ | |||
+ | ^River | ||
+ | | Amazon | ||
+ | | Mississippi | ||
+ | | Nile | 6650|Africa | ||
+ | | Ob | 5410|Asia | ||
+ | | Paraná | ||
+ | | Yangtze | ||
+ | | Yellow River | 5464|Asia | ||
+ | | Yenisei | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | **Example 2 (two-column sort): | ||
+ | |||
+ | **Action parameters: | ||
+ | |||
+ | > Column, Sorting order: Continent, ascending | ||
+ | > Column, Sorting order: River, ascending | ||
+ | |||
+ | |||
+ | **Output table:** | ||
+ | |||
+ | ^River | ||
+ | | Nile | 6650|Africa | ||
+ | | Ob | 5410|Asia | ||
+ | | Yangtze | ||
+ | | Yellow River | 5464|Asia | ||
+ | | Yenisei | ||
+ | | Mississippi | ||
+ | | Amazon | ||
+ | | Paraná | ||
+ | |||
+ | \\ | ||
+ | =====Shortcuts===== | ||
+ | Fast ways to create the action:\\ | ||
+ | |||
+ | *Right-click on the heading of the column to sort and select " | ||
+ | *To sort by multiple columns, select the columns included in the sort. Right-click on one of the selected column headings and select " | ||
+ | |||
+ | |||
transformations/sort.txt · Last modified: 2021/07/18 23:13 by craigt