Skip to content

A self-hosted media server and file management system

chore: improve video sorting options order

aminnausinec719777e7b1
diff --git a/resources/js/constants/sortingOptions.ts b/resources/js/constants/sortingOptions.ts
index 3598b3d5..cdb6e202 100644
--- a/resources/js/constants/sortingOptions.ts
+++ b/resources/js/constants/sortingOptions.ts
@@ -53,39 +53,21 @@ export const mediaSortingOptions = (folder: FolderResource): GenericSortOption<V
value: 'title',
disabled: false,
},
- {
- title: 'Date Uploaded',
- value: 'file_modified_at',
- disabled: false,
- },
- {
- title: 'Date Edited',
- value: 'edited_at',
- disabled: false,
- },
{
title: 'Views',
value: 'view_count',
disabled: false,
},
{
- title: 'Last Watched',
- value: 'progress_updated_at',
+ title: 'Date Uploaded',
+ value: 'file_modified_at',
disabled: false,
},
{
- title: 'First Watched',
- value: 'progress_created_at',
+ title: 'Date Edited',
+ value: 'edited_at',
disabled: false,
},
- {
- title: 'Watch Progress',
- value: 'progress_percentage',
- },
- {
- title: 'Times Completed',
- value: 'completion_count',
- },
{
title: 'Artist',
value: 'artist',
@@ -113,14 +95,32 @@ export const mediaSortingOptions = (folder: FolderResource): GenericSortOption<V
value: 'duration',
disabled: false,
},
+ {
+ title: 'File Size',
+ value: 'file_size',
+ disabled: false,
+ },
{
title: 'Date Released',
value: 'released_at',
disabled: false,
},
{
- title: 'File Size',
- value: 'file_size',
+ 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',
+ },
];