public function orderByIndex($label, $sort = 'ASC')
    {
        $this->join('cc._indexation', 'idx')
             ->andWhere('idx._field = :sort')
             ->setParameter('sort', $label)
             ->orderBy('idx._value', $sort);
    }
public function orderByIndex($label, $sort = 'ASC')
    {
        $this->join('cc._indexation', 'idx')
             ->andWhere('idx._field = :sort')
             ->setParameter('sort', $label)
             ->orderBy('idx._value', $sort);
    }
public function orderByIndex ( $ label , $ sort = 'ASC' ) { $ this -> join ( 'cc._indexation' , 'idx' ) -> andWhere ( 'idx._field = :sort' ) -> setParameter ( 'sort' , $ label ) -> orderBy ( 'idx._value' , $ sort ) ; }
Order with the indexation table.

@param  string $label
@param  string $sort  ('ASC'|'DESC')
Order with the indexation table .