diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue index 2984d9b..acf40ae 100644 --- a/components/dashboard/links/Index.vue +++ b/components/dashboard/links/Index.vue @@ -23,9 +23,9 @@ const displayedLinks = computed(() => { case 'oldest': return sorted.sort((a, b) => new Date(a.created_at).getTime() - new Date(b.created_at).getTime()) case 'az': - return sorted.sort((a, b) => (a.title || '').localeCompare(b.title || '')) + return sorted.sort((a, b) => a.slug.localeCompare(b.slug)) case 'za': - return sorted.sort((a, b) => (b.title || '').localeCompare(a.title || '')) + return sorted.sort((a, b) => b.slug.localeCompare(a.slug)) default: return sorted } @@ -81,39 +81,39 @@ function updateLinkList(link, type) {
- +
+ + + + + + + + Newest First + + + Oldest First + + + A to Z + + + Z to A + + + +
-
- - - - - - - Newest First - - - Oldest First - - - A to Z - - - Z to A - - - -