cocoa: sort files opened from Finder the same way Finder does

Fixes #497
This commit is contained in:
Bilal Syed Hussain 2014-01-19 23:06:07 +00:00 committed by Stefano Pigozzi
parent 1485711d61
commit 32fea9e607
1 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,8 @@ Application *mpv_shared_app(void)
}
}];
self.files = [filesToOpen sortedArrayUsingSelector:@selector(compare:)];
SEL cmpsel = @selector(localizedStandardCompare:);
self.files = [filesToOpen sortedArrayUsingSelector:cmpsel];
if (self.willStopOnOpenEvent) {
self.willStopOnOpenEvent = NO;
cocoa_stop_runloop();