]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/sort-field.type.ts
Add comment filtering by reply count
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / sort-field.type.ts
index 776f360f8de43f838f9dc6f44f6a317da2b294e1..65b24d9463ee57e4fb608280ea6f912fa4543fcf 100644 (file)
@@ -1,5 +1,10 @@
-export type SortField = 'name' | '-name'
+export type VideoSortField = 'name' | '-name'
                       | 'duration' | '-duration'
+                      | 'publishedAt' | '-publishedAt'
                       | 'createdAt' | '-createdAt'
                       | 'views' | '-views'
                       | 'likes' | '-likes'
+                      | 'trending' | '-trending'
+
+export type CommentSortField = 'createdAt' | '-createdAt'
+                          | 'totalReplies' | '-totalReplies'