Добавлена сортировка по номеру архива
This commit is contained in:
@@ -17,7 +17,8 @@ class ArchiveCardService
|
|||||||
) : LengthAwarePaginator
|
) : LengthAwarePaginator
|
||||||
{
|
{
|
||||||
$query = ArchiveInfo::with(['misHistory', 'foxproHistory'])
|
$query = ArchiveInfo::with(['misHistory', 'foxproHistory'])
|
||||||
->orderBy('post_in', 'desc');
|
->orderBy('post_in', 'desc')
|
||||||
|
->orderBy('archive_num', 'asc');
|
||||||
|
|
||||||
// Поиск по тексту (если передан)
|
// Поиск по тексту (если передан)
|
||||||
if (!empty($searchText)) {
|
if (!empty($searchText)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user