.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OESortConfsBySDTag

.. oe:function:: OESortConfsBySDTag

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

      .. oe:api::

         bool OESortConfsBySDTag(OEChem::OEMCMolBase& mol,
                                 const std::string& sdtag, bool biggerIsBetter)

   .. oe:language:: python

      .. oe:api:: python

         OESortConfsBySDTag(mol: OEMol, sdtag: str, biggerIsBetter: bool) -> bool

   Reorders the conformers of *mol* based on SD values associated
   with the given *sdtag*.  The SD values must be numeric.
   *biggerIsBetter* controls if the highest (true) values appear
   first in the list or the lowest values (false).

   Conformers missing *sdtag* SD data will be sorted to the end of
   the list.

