Skip to content

A self-hosted media server and file management system

fix: video sorting options do not include edited_at or watch dates

aminnausinc1b62a105a5f
diff --git a/resources/js/constants/sortingOptions.ts b/resources/js/constants/sortingOptions.ts
index 47c04f3e..3598b3d5 100644
--- a/resources/js/constants/sortingOptions.ts
+++ b/resources/js/constants/sortingOptions.ts
@@ -59,8 +59,8 @@ export const mediaSortingOptions = (folder: FolderResource): GenericSortOption<V
disabled: false,
},
{
- title: 'Date Released',
- value: 'released_at',
+ title: 'Date Edited',
+ value: 'edited_at',
disabled: false,
},
{
@@ -68,6 +68,24 @@ export const mediaSortingOptions = (folder: FolderResource): GenericSortOption<V
value: 'view_count',
disabled: false,
},
+ {
+ title: 'Last Watched',
+ value: 'progress_updated_at',
+ disabled: false,
+ },
+ {
+ title: 'First Watched',
+ value: 'progress_created_at',
+ disabled: false,
+ },
+ {
+ title: 'Watch Progress',
+ value: 'progress_percentage',
+ },
+ {
+ title: 'Times Completed',
+ value: 'completion_count',
+ },
{
title: 'Artist',
value: 'artist',
@@ -96,16 +114,13 @@ export const mediaSortingOptions = (folder: FolderResource): GenericSortOption<V
disabled: false,
},
{
- title: 'File Size',
- value: 'file_size',
+ title: 'Date Released',
+ value: 'released_at',
disabled: false,
},
{
- title: 'Watch Progress',
- value: 'progress_percentage',
- },
- {
- title: 'Times Completed',
- value: 'completion_count',
+ title: 'File Size',
+ value: 'file_size',
+ disabled: false,
},
];