sort by name by default

This commit is contained in:
miloschwartz
2026-02-27 15:53:27 -08:00
parent 8347203bbe
commit ad9289e0c1
5 changed files with 5 additions and 5 deletions

View File

@@ -370,7 +370,7 @@ export async function listClients(
? order === "asc"
? asc(clients[sort_by])
: desc(clients[sort_by])
: asc(clients.clientId)
: asc(clients.name)
);
const [clientsList, totalCount] = await Promise.all([

View File

@@ -429,7 +429,7 @@ export async function listResources(
? order === "asc"
? asc(resources[sort_by])
: desc(resources[sort_by])
: asc(resources.resourceId)
: asc(resources.name)
),
countQuery
]);

View File

@@ -289,7 +289,7 @@ export async function listSites(
? order === "asc"
? asc(sites[sort_by])
: desc(sites[sort_by])
: asc(sites.siteId)
: asc(sites.name)
);
const [totalCount, rows] = await Promise.all([

View File

@@ -205,7 +205,7 @@ export async function listAllSiteResourcesByOrg(
? order === "asc"
? asc(siteResources[sort_by])
: desc(siteResources[sort_by])
: asc(siteResources.siteResourceId)
: asc(siteResources.name)
),
countQuery
]);

View File

@@ -112,7 +112,7 @@ export async function listSiteResources(
? order === "asc"
? asc(siteResources[sort_by])
: desc(siteResources[sort_by])
: asc(siteResources.siteResourceId)
: asc(siteResources.name)
)
.limit(limit)
.offset(offset);