Commit 15da5e8c authored by Thomas Hamel's avatar Thomas Hamel
Browse files

Ajout d'un tri sur le type de formation affiché sur le tableau de bord des sessions

parent 39d1d684
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -271,6 +271,10 @@ class SessionSearchService extends SearchService

    private function createTypeSorter(): SearchSorter
    {
        return new SearchSorter("Type", self::NAME_type);
        $sorter = new SearchSorter("Type", self::NAME_type);
        $sorter->setQueryBuilderApplier(function (SearchSorter $sorter, QueryBuilder $qb){
                $qb->addOrderBy('struct.sigle', $sorter->getDirection());
        });;
        return $sorter;
    }
}
 No newline at end of file