---
name: "sorterr"
section: "1"
platform: "linux"
package: "survex"
version: "1.4.17-1+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/sorterr"
---

# sorterr(1)

re-sort .err file by various criteria

## NAME

sorterr - re-sort .err file by various criteria

## SYNOPSIS

**sorterr** \[*OPTIONS*\] *ERR\_FILE* \[*HOW\_MANY*\]

## DESCRIPTION

**sorterr** re-sorts a .err file by the specified criterion (or by the error ratio by default).  Output is sent to stdout, or if **--replace** (short option **-r**) is specified the input file is replaced with the sorted version.  By default all entries in the file are included - if a second parameter is given then only the top **HOW\_MANY** entries after sorting are returned.

## OPTIONS

- **-h, --horizontal**

  sort by horizontal error factor

- **-v, --vertical**

  sort by vertical error factor

- **-p, --percentage**

  sort by percentage error

- **-l, --per-leg**

  sort by error per leg

- **-r, --replace**

  replace .err file with re-sorted version

- **--help**

  display short help and exit

- **--version**

  output version information and exit

## SEE ALSO

[**aven**(1)](/aven/1.md), [**cavern**(1)](/cavern/1.md), [**diffpos**(1)](/diffpos/1.md), [**dump3d**(1)](/dump3d/1.md), [**extend**(1)](/extend/1.md), [**survexport**(1)](/survexport/1.md)

## COPYRIGHT

1998-2025
