Tri par ordre alphabétique et suppression des codes

This commit is contained in:
Michael RICOIS 2012-04-24 09:22:24 +00:00
parent 8bc286bdab
commit b0c5b83115

View File

@ -85,12 +85,12 @@ class Object_Codepostaux extends Libs_Row
public function _getRegions()
{
$region = new Table_Regions();
$regions = $region->fetchAll($region->select())->toArray();
$regions = $region->fetchAll($region->select()->order('NCCENR ASC'))->toArray();
$structure = array();
foreach($regions as $nom) {
$structure[] = array(
'data' => $nom['REGION'].' '.$nom['NCCENR'],
'data' => $nom['NCCENR'],
'attr' => array('id' => $this->getDepartement($nom['REGION']),
'niveau' => 0,
'class' => $this->_getClass($this->getDepartement($nom['REGION']), 0)