Model/Base/CustomerGroupQuery.php
static public function doSelectOrderByRank(Criteria $criteria = null, $order = Criteria::ASC, ConnectionInterface $con = null)
    {
        if (null === $con) {
            $con = Propel::getServiceContainer()->getReadConnection(CustomerGroupTableMap::DATABASE_NAME);
        }

        if (null === $criteria) {
            $criteria = new Criteria();
        } elseif ($criteria instanceof Criteria) {
            $criteria = clone $criteria;
        }

        $criteria->clearOrderByColumns();

        if (Criteria::ASC == $order) {
            $criteria->addAscendingOrderByColumn(CustomerGroupTableMap::RANK_COL);
        } else {
            $criteria->addDescendingOrderByColumn(CustomerGroupTableMap::RANK_COL);
        }

        return ChildCustomerGroupQuery::create(null, $criteria)->find($con);
    }
static public function doSelectOrderByRank(Criteria $criteria = null, $order = Criteria::ASC, ConnectionInterface $con = null)
    {
        if (null === $con) {
            $con = Propel::getServiceContainer()->getReadConnection(CustomerGroupTableMap::DATABASE_NAME);
        }

        if (null === $criteria) {
            $criteria = new Criteria();
        } elseif ($criteria instanceof Criteria) {
            $criteria = clone $criteria;
        }

        $criteria->clearOrderByColumns();

        if (Criteria::ASC == $order) {
            $criteria->addAscendingOrderByColumn(CustomerGroupTableMap::RANK_COL);
        } else {
            $criteria->addDescendingOrderByColumn(CustomerGroupTableMap::RANK_COL);
        }

        return ChildCustomerGroupQuery::create(null, $criteria)->find($con);
    }
static public function doSelectOrderByRank ( Criteria $ criteria = null , $ order = Criteria :: ASC , ConnectionInterface $ con = null ) { if ( null === $ con ) { $ con = Propel :: getServiceContainer ( ) -> getReadConnection ( CustomerGroupTableMap :: DATABASE_NAME ) ; } if ( null === $ criteria ) { $ criteria = new Criteria ( ) ; } elseif ( $ criteria instanceof Criteria ) { $ criteria = clone $ criteria ; } $ criteria -> clearOrderByColumns ( ) ; if ( Criteria :: ASC == $ order ) { $ criteria -> addAscendingOrderByColumn ( CustomerGroupTableMap :: RANK_COL ) ; } else { $ criteria -> addDescendingOrderByColumn ( CustomerGroupTableMap :: RANK_COL ) ; } return ChildCustomerGroupQuery :: create ( null , $ criteria ) -> find ( $ con ) ; }
Return an array of sortable objects ordered by position

@param     Criteria  $criteria  optional criteria object
@param     string    $order     sorting order, to be chosen between Criteria::ASC (default) and Criteria::DESC
@param     ConnectionInterface $con       optional connection

@return    array list of sortable objects
Return an array of sortable objects ordered by position