Andrew 2 mesi fa
parent
commit
8fe9fd0398

+ 1
- 2
app/Filament/Resources/AlbumResource.php Vedi File

@@ -168,8 +168,7 @@ class AlbumResource extends Resource
168 168
                 ]),
169 169
             ])
170 170
             ->reorderable('order')
171
-            ->defaultSort('order')
172
-            ->defaultSort('created_at', 'desc');
171
+            ->defaultSort('order');
173 172
     }
174 173
 
175 174
     public static function getRelations(): array

+ 1
- 2
app/Filament/Resources/NewsResource.php Vedi File

@@ -268,8 +268,7 @@ class NewsResource extends Resource
268 268
                 ]),
269 269
             ])
270 270
             ->reorderable('order')
271
-            ->defaultSort('order')
272
-            ->defaultSort('created_at', 'desc');
271
+            ->defaultSort('order');
273 272
     }
274 273
 
275 274
     public static function getRelations(): array