Skip to content

Commit 6bb72e8

Browse files
authored
sort playlist after db scan (matches manual scan) (#18469)
1 parent a6ae965 commit 6bb72e8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tasks/task_database.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,9 @@ static void scan_results_batch_update_playlists(scan_results_t *sr, db_handle_t
13231323
{
13241324
RARCH_LOG("[Scanner] Added %u entries to \"%s\"\n",
13251325
added_count, current_playlist);
1326+
/* Ensure playlist is alphabetically sorted (matches manual scan behavior) */
1327+
playlist_set_sort_mode(playlist, PLAYLIST_SORT_MODE_DEFAULT);
1328+
playlist_qsort(playlist);
13261329
playlist_write_file(playlist);
13271330
playlist_free(playlist);
13281331
}

0 commit comments

Comments
 (0)