[API Request] Allow sort order for getAlbumList2 #19
jeffvli
started this conversation in
API requests
Replies: 1 comment
-
Related to #7 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Type of change
API tweak
Proposal description
Would also be used for other list endpoints such as #18.
There's currently no way to change the sort order for
getAlbumList2
besides usingfromYear
andtoYear
to reverse the chronological sort.An example grievance would be using
type=alphabeticalByName
and then having to paginate through your entire library to reach an album that starts with the letterZ
. This becomes more difficult with larger libraries.This proposal would add an optional parameter
order
to set descending or ascending sort for the resulting query.Backward compatibility impact
If
order
is omitted, the sort order will use the original order set by thetype
parameter.Backward compatibility
API details
Security impacts
No response
Potential issues
No response
Alternative solutions
It can be argued that if a user wanted to find something specific, they could just use the
search3
endpoint to find what they're looking for instead of needing to reverse the sort order. But I think having a way to set the sort order on the list would greatly improve the user experience if a user did not know exactly what they were looking for.Beta Was this translation helpful? Give feedback.
All reactions