stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
8.78k stars 778 forks source link

[Feature] Add 'Age When Filmed' Sort Option on Scenes Tab #2564

Open burner-reddit opened 2 years ago

burner-reddit commented 2 years ago

I'd like to pay a crypto bounty to have the following feature added:

While filtering by 'Performer Age' is helpful, I'd like to go one level further and be able to sort by 'Age When Filmed', based on the # of days between the performer's birthday and the scene date. Being able to delineate between the gender of the performers would also be useful, but not required.

In the case where there are multiple performers of the same gender, my thought is the 'descending' view would sort by the age of the oldest performer when filmed, and then the inverse for the 'ascending' view.

Please let me know if this is doable, and if so, I can make the contribution!

gitgiggety commented 2 years ago

I do believe this would end up being quite complex. Besides using youngest / oldest based on respectively ascending and descending one could also add sorting by the average age. And obviously one could also argue that when sorting ascending (youngest to oldest) that this should be based on the oldest performer instead of the youngest (and vice versa when sorting oldest to youngest, where the age of the youngest performer is used).

Furthermore not every scene has a date, nor does every performer have a known birthdate. So there is some logic involved there as well. If the scene doesn't have a date it should be at the top or bottom of the list. The same applies when no performer in the scene has a known birthdate, the scene should either be at the top or bottom. But there will also be scenes where the age of only some, but not all, performers is known. So should the sorting then be based on just those which are known? Or should all be ignored then? Because the sorting would only be really reliable when the age of al performers is known.