I use a webtool (Sort Your Music Playlist Machinery) to sort my Spotify playlists by a variety of metadata values eg danceability, valence, etc. The one I’ve found to be most enjoyable is BPM, in a larger playlist (500 or so songs) it makes sure that almost every track has a really nice no-crossfade transition to the next one, with the consistent tempo allowing a strong vibe to develop akin to a good DJ set