stash icon indicating copy to clipboard operation
stash copied to clipboard

URLs should be sorted alphabetically

Open cj12312021 opened this issue 1 year ago • 8 comments

With the addition of URLs in objects such as performers, movies, I would have expected those URLs to be sorted upon update similar to aliases. However that does not appear to be the case.

cj12312021 avatar Sep 09 '24 02:09 cj12312021

Currently, it appears that they are sorted by insert order. How do we expect these to be sorted?

Gykes avatar Nov 18 '25 03:11 Gykes

My preferense would be alphabetical order excluding http(s)://www.. That would naturally group based on the domain.

DogmaDragon avatar Nov 18 '25 03:11 DogmaDragon

I think really URLs should probably be an ordered list with perhaps a description field, but that's a larger change. At least if they are sorted by insert order there is some semblance of control over how they are displayed.

WithoutPants avatar Nov 18 '25 03:11 WithoutPants

Agree with WP on this one. Leaving them as insert order allows the user to make it any order they want, including alphabetical.

Gykes avatar Nov 18 '25 03:11 Gykes

That seems like niche use case. Do you really expect people to re-order 10-30 URLs per performer manually just to have custom order? While alphabetical order loses theoretical control, in practice it would be a lot more useful to a lot more people.

Basic dupe hunting would be made a lot easier where domain change, URL schema changes or extra URL paramaters (including trailing /) often lead to duplicate links.

DogmaDragon avatar Nov 18 '25 03:11 DogmaDragon

Points are valid, If WP is fine with it then I can do it.

Gykes avatar Nov 18 '25 03:11 Gykes

I don't have a strong opinion, go for it.

WithoutPants avatar Nov 18 '25 04:11 WithoutPants

I've reverted #6352 due to it breaking the workflow for users that sort their URLs manually. Reopening to re-solve this issue.

WithoutPants avatar Dec 11 '25 00:12 WithoutPants

This issue has been mentioned on Stash. There might be relevant details there:

https://discourse.stashapp.cc/t/plugin-requests/4755/3

discourse-stashapp avatar Dec 14 '25 01:12 discourse-stashapp