diff --git a/src/articles.php b/src/articles.php index f5d0fd1..a6ceb5c 100644 --- a/src/articles.php +++ b/src/articles.php @@ -381,6 +381,8 @@ document.addEventListener('DOMContentLoaded', function () { const collapsedCategories = new Set(); let currentView = 'list'; + let currentSortColumn = 'category_name'; + let currentSortDirection = 'asc'; // Initialize collapsed state based on user setting if (collapseDefault) { diff --git a/src/storage_locations.php b/src/storage_locations.php index 406746b..9ccfe49 100644 --- a/src/storage_locations.php +++ b/src/storage_locations.php @@ -351,16 +351,21 @@ function printDiv(divId) { var originalContents = document.body.innerHTML; document.body.innerHTML = `