Support random performer sort (#666)

This commit is contained in:
WithoutPants
2020-07-14 08:51:39 +10:00
committed by GitHub
parent ec2bcc7a74
commit 8076405965
2 changed files with 8 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ const markup = `
* Add support for parent/child studios.
### 🎨 Improvements
* Add random sorting for performers.
* Search for files which have low or upper case supported filename extensions.
* Add dialog when pasting movie images.
* Allow click and click-drag selection after selecting scene.

View File

@@ -136,7 +136,13 @@ export class ListFilterModel {
break;
case FilterMode.Performers: {
this.sortBy = "name";
this.sortByOptions = ["name", "height", "birthdate", "scenes_count"];
this.sortByOptions = [
"name",
"height",
"birthdate",
"scenes_count",
"random",
];
this.displayModeOptions = [DisplayMode.Grid, DisplayMode.List];
const numberCriteria: CriterionType[] = ["birth_year", "age"];