---
name: "cif_sort_atoms"
section: "1"
platform: "linux"
package: "cod-tools"
version: "3.11.0+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cif_sort_atoms"
---

# cif\_sort\_atoms(1)

sort atoms in a CIF file in given order. Accepts more than one sorting criterion.

## NAME

cif\_sort\_atoms - sort atoms in a CIF file in given order. Accepts more than one sorting criterion.

## SYNOPSIS

cif\_sort\_atoms --options input1.cif input\*.cif

## DESCRIPTION

Sort atoms in a CIF file in given order. Accepts more than one sorting criterion.

## OPTIONS

\-l, --lexicographic\
                   Sort by lexicographic order (default).

\-Z, --atomic-number\
                   Sort by atomic number.

\--ascending-numerical \_atom\_site\_occupancy\
                   Sort by values of CIF data item in ascending numerical\
                   order.

\--descending-numerical \_atom\_site\_occupancy\
                   Sort by values of CIF data item in descending numerical\
                   order.

\--ascending-lexical \_atom\_site\_label\
                   Sort by values of CIF data item in ascending lexical\
                   order.

\--descending-lexical \_atom\_site\_label\
                   Sort by values of CIF data item in descending lexical\
                   order.

\-r, --reverse\
                   Reverse the ordering.

\--order-child-loops\
                   Also order loops with data items referencing\
                   '\_atom\_site\_label'.

\--no-order-child-loops\
                   Preserve the original order of loops with data items\
                   referencing '\_atom\_site\_label' (default).

\--record-original-order\
                   Record the original atom order.

\--no-record-original-order\
                   Do not record the original atom order (default).

\--use-perl-parser\
                   Use Perl parser for CIF parsing.

\--use-c-parser\
                   Use Perl & C parser for CIF parsing (default).

\--help, --usage\
                   Output a short usage message (this message) and exit.

\--version\
                   Output version information and exit.

## REPORTING BUGS

Report cif\_sort\_atoms bugs using e-mail: cod-bugs@ibt.lt
