feat: ajouter le tri par nom sur les catalogues

This commit is contained in:
Matthieu
2025-10-24 15:18:24 +02:00
parent 325bdb3d6f
commit d011e58030
3 changed files with 204 additions and 56 deletions

View File

@@ -68,8 +68,8 @@ const props = withDefaults(
const selectedCategory = ref<ModelCategory>(props.category);
const searchInput = ref("");
const searchTerm = ref("");
const sort = ref<"name" | "createdAt">("createdAt");
const dir = ref<"asc" | "desc">("desc");
const sort = ref<"name" | "createdAt">("name");
const dir = ref<"asc" | "desc">("asc");
const limit = ref(20);
const offset = ref(0);