---
name: "cg-sort"
section: "1"
platform: "linux"
package: "cg3"
version: "1.5.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cg-sort"
---

# cg-sort(1)

CG-3 v1.3.9

## NAME

cg-sort - CG-3 v1.3.9

## SYNOPSIS

**cg-sort** \[*OPTIONS*\]

## DESCRIPTION

Pipe a CG stream through this to sort and unique the readings of each cohort.

## OPTIONS

- \-?, **--help**

  outputs this help

- **-w**, **--weight**

  sorts by a numeric tag; defaults to W

- **-r**, **--reverse**

  reverses the sort order
