1: The same improvement should apply to audio lists.
2: A simple implementation is suggested in: Folders for organizing playlist - #5 by alainravet1
A very simple solution would be to allow dots in playlists names (see below), and use those dots to fold/unfold groups of playlists that start with the same suffix.
This doesn’t require any change in the data/DB, only in the client #show-list-of-playlists JavaScript code .
Example: if you have 6 courses/playlists named
Active Playlist
Book.The bible
Book.Harry Potter.Philosopher’s Stone
Book.Harry Potter.Chamber of Secrets (
News.europe
News.world
You could fold/compress them into
Active Playlist
Book. [+]
News.[+]
A click on the [+] would unfold the folded lines.