diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue
index b0a56eb..58c297b 100644
--- a/components/dashboard/links/Index.vue
+++ b/components/dashboard/links/Index.vue
@@ -7,6 +7,7 @@ const limit = 24
let cursor = ''
let listComplete = false
let listError = false
+const sortBy = ref('created_desc') // created_desc, created_asc, alpha_asc, alpha_desc
async function getLinks() {
try {
@@ -14,6 +15,7 @@ async function getLinks() {
query: {
limit,
cursor,
+ sort: sortBy.value,
},
})
links.value = links.value.concat(data.links).filter(Boolean) // Sometimes cloudflare will return null, filter out
@@ -62,6 +64,40 @@ function updateLinkList(link, type) {