[GH-ISSUE #892] [Feature Request] Sorting within panes #384

Open
opened 2026-02-28 14:48:49 +03:00 by kerem · 2 comments
Owner

Originally created by @jtrv on GitHub (Sep 20, 2021).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/892

Originally I wanted to make a feature request for sorting playlists in the playlist pane. However it dawned on me that a general sorting function applicable to any pane might be a more useful, if possible. Then down the line it could be extended with 'sort by album, length, etc'.

Originally created by @jtrv on GitHub (Sep 20, 2021). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/892 Originally I wanted to make a feature request for sorting playlists in the playlist pane. However it dawned on me that a general sorting function applicable to any pane might be a more useful, if possible. Then down the line it could be extended with 'sort by album, length, etc'.
Author
Owner

@Rigellute commented on GitHub (Oct 1, 2021):

This is somewhat tricky as this sorting ideally needs to happen on the server due to spotify's pagination of results. To my knowledge, sorting is not a feature exposed by their API. I'll leave this open in case it becomes possible in the future.

The alternative is for spotify-tui to fetch all the results and then sort in memory. This could be problematic on large playlists/result pages

<!-- gh-comment-id:932088882 --> @Rigellute commented on GitHub (Oct 1, 2021): This is somewhat tricky as this sorting ideally needs to happen on the server due to spotify's pagination of results. To my knowledge, sorting is not a feature exposed by their API. I'll leave this open in case it becomes possible in the future. The alternative is for spotify-tui to fetch all the results and then sort in memory. This could be problematic on large playlists/result pages
Author
Owner

@jtrv commented on GitHub (Oct 1, 2021):

That makes sense, would it be possible to at least fetch/cache/sort solely for the playlist names in the playlist pane on the left? I'm a serial playlist maker and I have a large amount of playlists. As it is currently, it's kind of a pain to find my playlists in the order they appear in. Also I've been itching to learn rust, if you believe this may be a beginner friendly task or have relevant resources you can provide I would be glad to take a stab at it.

<!-- gh-comment-id:932474604 --> @jtrv commented on GitHub (Oct 1, 2021): That makes sense, would it be possible to at least fetch/cache/sort solely for the playlist names in the playlist pane on the left? I'm a serial playlist maker and I have a large amount of playlists. As it is currently, it's kind of a pain to find my playlists in the order they appear in. Also I've been itching to learn rust, if you believe this may be a beginner friendly task or have relevant resources you can provide I would be glad to take a stab at it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#384
No description provided.