.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEPDBOrderAtoms

.. oe:function:: OEPDBOrderAtoms

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEPDBOrderAtoms(OEMolBase& mol, bool preserveResOrder = false)

   .. oe:language:: python

      .. oe:api:: python

         OEPDBOrderAtoms(mol: Union[OEGraphMol,OEMol,OEQMol],
                         preserveResOrder: bool = False) -> bool

   Reorders the atoms of a molecule into PDB order, using the residue
   information associated with each atom. The optional argument preserveResOrder,
   forces the function to preserve the residue order from the input.

