
.. oe:namespace:: OEChem

.. meta::
   :keywords: OESortConfsByTag

.. oe:function:: OESortConfsByTag

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

      .. oe:api::

         bool OESortConfsByTag(OEChem::OEMCMolBase& mol,
                               const std::string& tag, bool biggerIsBetter)

   .. oe:language:: python

      .. oe:api:: python

         OESortConfsByTag(mol: OEMol, tag: str, biggerIsBetter: bool) -> bool

   Reorders the conformers of *mol* based on the value of generic
   data on the conformers with the specified *tag*.  The generic
   data must be stored as either a float or double.  
   *biggerIsBetter* controls if the highest (true) values appear
   first in the list or the lowest values (false).

   Conformers missing *tag* float/double generic data will best
   sorted to the end of the conformer list.

