Skip to content

Latest commit

 

History

History
60 lines (51 loc) · 1.68 KB

File metadata and controls

60 lines (51 loc) · 1.68 KB

Sort - Sorts CSV data lexicographically

sample file (The result of ExtSort same as Sort)
┌─────┬────────┐
│ idx │ name   │
├─────┼────────┤
│  2  │ tom    │
│  1  │ jerry  │
│  3  | hansen |
└─────┴────────┘

1.Set criteria (Select column: idx, Numeric: true, Reverse: false)

┌─────┬────────┐
│ idx │ name   │
├─────┼────────┤
│  1  │ jerry  │
│  2  │ tom    │
│  3  | hansen |
└─────┴────────┘

2.Set criteria (Select column: idx, Numeric: true, Reverse: true)

┌─────┬────────┐
│ idx │ name   │
├─────┼────────┤
│  3  │ hansen │
│  2  │ tom    │
│  1  | jerry  |
└─────┴────────┘

3.Set criteria (Select column: name, Numeric: false, Reverse: false)

┌─────┬────────┐
│ idx │ name   │
├─────┼────────┤
│  3  │ hansen │
│  1  │ jerry  │
│  2  | tom    |
└─────┴────────┘

4.Set criteria (Select column: name, Numeric: false, Reverse: true)

┌─────┬────────┐
│ idx │ name   │
├─────┼────────┤
│  2  │ tom    │
│  1  │ jerry  │
│  3  | hansen |
└─────┴────────┘