Sort playlists with ascending parent id, so that more nested playlists come after

the less nested ones (required by Retune)
This commit is contained in:
ejurgensen 2015-03-30 08:54:17 +02:00
parent 986b37ed29
commit 41f39ea5ca

View File

@ -286,7 +286,7 @@ static const char *sort_clause[] =
"ORDER BY f.title_sort ASC",
"ORDER BY f.album_sort ASC, f.disc ASC, f.track ASC",
"ORDER BY f.album_artist_sort ASC",
"ORDER BY f.type DESC, f.special_id ASC, f.title ASC",
"ORDER BY f.type DESC, f.parent_id ASC, f.special_id ASC, f.title ASC",
"ORDER BY f.year ASC",
};