| Item | Quantity |
|---|---|
| Notebook | 12 |
| Pencil | 4 |
A dump sorted by the first column, with every row still in it, is rarely the file you wanted to hand someone. Sort and filter a CSV orders one column and drops rows that do not contain your text. The match looks in every cell, ignoring letter case. Sort uses numeric order when the cells are numbers, so 4 comes before 12. A plain text sort would put 12 first because the character 1 precedes 4.
Leave Sort column blank to order the first header. Leave Row contains blank to keep every row. Order is ascending unless you switch it. The result is CSV in the new order, with the header on top. Filtering happens before the sort, so the order you see is the order of the rows that matched.
Item,Quantity / Notebook,12 / Pen,4. Set Sort column to Quantity and Order to ascending. Row contains stays empty.
Quantity ascending returns Item,Quantity / Pen,4 / Notebook,12, because 4 is smaller than 12. Filtering with Row contains set to Pen returns Item,Quantity / Pen,4. Sorting the sample by Item descending returns Pen,4 and then Notebook,12.
Numeric sort plus a contains-filter writes a new CSV in the order you asked for, which a grid sort on screen does not save until you export.
The comparison is numeric. Twelve is larger than four, so ascending order puts Pen,4 above Notebook,12. A character-by-character sort would have done the opposite.
No. Pen matches pen and PEN. The match is a substring of any cell in the row.
On this page the text is sought in every cell. The table workspace has Search in, which can limit the match to one header.
The header is still written, with no data rows under it.
Cells are reordered, not rewritten. 12 stays 12. Trimming is the cleaner's job.