Parcourir la source

Index Restauration: Correction tri

olivier.massot il y a 7 ans
Parent
commit
67144abb64
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      CD67.FicheCollege.MVC/Views/Restauration/Index.cshtml

+ 2 - 2
CD67.FicheCollege.MVC/Views/Restauration/Index.cshtml

@@ -31,7 +31,7 @@
     }
 </div>
 
-<table id="table-actions" class="datatable table">
+<table id="table-actions" class="datatable table" data-order="[[ 1, &quot;asc&quot; ]]">
     <thead>
         <tr>
             <th>
@@ -55,7 +55,7 @@
         </tr>
     </thead>
     <tbody>
-        @foreach (College college in Model.Obj.Colleges)
+        @foreach (College college in Model.Obj.Colleges.OrderBy(c=>c.Libelle))
         {
             <tr>
                 <td>