diff --git a/frontend/src/pages/org/collections-list.ts b/frontend/src/pages/org/collections-list.ts index 8fdb8222..ab04c59f 100644 --- a/frontend/src/pages/org/collections-list.ts +++ b/frontend/src/pages/org/collections-list.ts @@ -27,7 +27,7 @@ type SearchResult = { value: string; }; }; -type SortField = "modified" | "name"; +type SortField = "modified" | "name" | "totalSize"; type SortDirection = "asc" | "desc"; const INITIAL_PAGE_SIZE = 10; const sortableFields: Record< @@ -42,6 +42,10 @@ const sortableFields: Record< label: msg("Name"), defaultDirection: "asc", }, + totalSize: { + label: msg("Size"), + defaultDirection: "desc", + }, }; const MIN_SEARCH_LENGTH = 2; @@ -365,11 +369,12 @@ export class CollectionsList extends LiteElement { return html`
@@ -441,7 +446,7 @@ export class CollectionsList extends LiteElement { html`