order by title

This commit is contained in:
2024-04-23 07:54:02 +10:00
parent da90616aa0
commit fd72954165

View File

@@ -10,6 +10,6 @@
</div>
<article class="content mb-4">{!! $post->content !!}</article>
<x-ui.gallery class="mt-16" value="{{ \App\Helpers::arrayToString($post->files('gallery')->pluck('name')->toArray()) }}" />
<x-ui.filelist class="mt-16" value="{{ \App\Helpers::arrayToString($post->files()->orderBy('name')->get()->pluck('name')->toArray()) }}" />
<x-ui.filelist class="mt-16" value="{{ \App\Helpers::arrayToString($post->files()->orderBy('title')->get()->pluck('name')->toArray()) }}" />
</x-container>
</x-layout>