aboutsummaryrefslogtreecommitdiff
path: root/src/docs/sorter.1
blob: 7b81e75aa812d5a4671df4f3f8a2176e30199288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.\" Manpage for sorter
.TH SORTER 1 "October 2025" "1.0" "Sorter Manual"
.SH NAME
sorter \- a simple program for sorting lists of coordinates
.SH SYNOPSIS
.B sorter
[\-a ALGORITHM] [file]
.SH DESCRIPTION
A command-line utility for sorting lists of coordinates.
.PP
The
.B sorter
program reads a list of coordinates from a file and sorts them using the specified algorithm.
.SH OPTIONS
.TP
.B \-a
Specifies the sorting algorithm to use. Valid options are:
.RS
.TP
.B qsort
Sorts the list of coordinates using a quicksort algorithm.
.TP
.B isort
Sorts the list of coordinates using an insertion sort algorithm.
.RE
.TP
.I file
Input file to process.
.SH EXAMPLES
Sort a file using quicksort:
.PP
.B sorter \-a qsort file.tsv
.PP
Sort a file using insertion sort:
.PP
.B sorter \-a isort file.tsv
.SH SEE ALSO
.B sort(1)