Introducing Stash Sorter – Advanced Multi-field & Random Sorting for StashApp #6432
efirlus
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
You can claim the topic https://discourse.stashapp.cc/t/stash-sorter/4838. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m excited to share Stash Sorter, a tool I (obviously Claude) developed to overcome some of the current limitations in StashApp's native sorting system.
While StashApp is an incredible platform, I found myself needing more complex sorting options (like multi-field, interleaved, or additional field sorting) that aren't currently possible through the UI.
Why an external script? (The Technical Limitation)
According to an analysis by Claude Code, the current Stash GraphQL schema is architecturally limited to single-field sorting. As shown in the schema below:
To support native multi-sort, the backend would need a major overhaul, changing the schema to an array-based input and rewriting the Go backend's SQL generation logic:
How Stash Sorter Works
Since a core backend change is a massive undertaking, I built this tool to handle the logic externally. It fetches data via Pure GraphQL, processes complex sorting algorithms (Multi-field, Interleaved, Randomize) on the client side, and updates your Stash views accordingly.
Key Features:
stashapp-toolsrequired) for maximum compatibility.I am not a professional developer (this project was fully orchestrated by Claude Code), so I might not be able to provide deep technical support. However, I’ve made the repository public for anyone who wants to Fork and contribute.
Check it out here: stashsorter
Fork to make it better are more than welcome!
Beta Was this translation helpful? Give feedback.
All reactions