Add initial sorting functionality on page load for card display

This commit is contained in:
Will Miao
2025-02-01 12:44:07 +08:00
parent 3158661cb3
commit 807e94151a

View File

@@ -25,6 +25,12 @@ function sortCards(sortBy) {
});
}
// 立即执行初始排序
const sortSelect = document.getElementById('sortSelect');
if (sortSelect) {
sortCards(sortSelect.value);
}
// Loading management
class LoadingManager {
constructor() {