Ver código fonte

Index Restauration: Correction tri

olivier.massot 7 anos atrás
pai
commit
67144abb64

+ 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>