From 1b1721736e894d41a301ae503b3bf97d7fbf3166 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sat, 16 Dec 2017 19:05:17 -0800 Subject: [PATCH] Fix PlaylistLoader to sort the contents of directories by the file path. --- Playlist/PlaylistLoader.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Playlist/PlaylistLoader.m b/Playlist/PlaylistLoader.m index 8da5afa0f..5ca519166 100755 --- a/Playlist/PlaylistLoader.m +++ b/Playlist/PlaylistLoader.m @@ -271,6 +271,9 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL } } } + + NSSortDescriptor * sd_path = [[NSSortDescriptor alloc] initWithKey:@"path" ascending:YES]; + [urls sortUsingDescriptors:[NSArray arrayWithObject:sd_path]]; return urls; }