Sort playlist by ui_order, to keep playlist ordered even if the user re-order them. Most of the code was written, I can't figure out why this code was missing... Anyway, fixes issue 1068

This commit is contained in:
Arnaud Bienner 2011-02-10 20:50:57 +00:00
parent a6b6147c9d
commit 0544cfa90a
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ PlaylistBackend::PlaylistList PlaylistBackend::GetAllPlaylists() {
QSqlQuery q("SELECT ROWID, name, last_played, dynamic_playlist_type,"
" dynamic_playlist_data, dynamic_playlist_backend"
" FROM playlists", db);
" FROM playlists"
" ORDER BY ui_order", db);
q.exec();
if (db_->CheckErrors(q))
return ret;