It's 2019 2020 2021 and Spotify still doesn't support sorting playlists by release date of tracks. This simple tool uses Spotify Web API to sort a playlist in this way.
Clone the repository
git clone --recurse-submodules https://github.com/mcieno/spotify-sort-by-release.git
cd spotify-sort-by-release
Install requirements
pip install -r requirements.txt
Install spotify-sort-by-release
pip install .
You can use spotify-sort-by-release
as a command line tool.
spotify-sort-by-release library
: sorts the libraryspotify-sort-by-release playlist
: sorts a playlist
You'll need an OAuth Token to contact the Spotify Web API, indeed. Make sure you request a token with permissions to create playlists for your account or to edit your library.
The script will create a new playlist and insert tracks into it sorted by release date, so that the "custom order" of the playlist is the desired one.