made sorting logic typesafe

This commit is contained in:
Daniel
2023-06-14 06:14:50 +03:30
parent d375f8f914
commit 8d094f320a
6 changed files with 65 additions and 52 deletions
+9
View File
@@ -42,3 +42,12 @@ export interface PublicCollectionIncludingLinks
ownerName?: string;
links: Link[];
}
export enum Sort {
NameAZ,
NameZA,
TitleAZ,
TitleZA,
DateNewestFirst,
DateOldestFirst,
}