Skip to content
Snippets Groups Projects
Commit 8b1d2863 authored by llaffont's avatar llaffont
Browse files

Tri des types doc dans #9359

parent a67596c8
Branches
Tags
No related merge requests found
......@@ -88,9 +88,14 @@ class ZendAfi_View_Helper_ComboCodification extends ZendAfi_View_Helper_BaseHelp
foreach ($types as $type) {
if (0 < count($filter) && !in_array($type->getId(), $filter))
continue;
$items[] = array('value' => $type->getId(), 'libelle' => $type->getLabel());
$items[] = array('value' => $type->getId(), 'libelle' => ucfirst($type->getLabel()));
}
usort($items,
function($a, $b) {
return strtolower($a['libelle']) > strtolower($b['libelle']);
});
return $items;
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment