summaryrefslogtreecommitdiffstats
path: root/OSX/SaverRunner.m
diff options
context:
space:
mode:
Diffstat (limited to 'OSX/SaverRunner.m')
-rw-r--r--OSX/SaverRunner.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/OSX/SaverRunner.m b/OSX/SaverRunner.m
index f358fb7..8ab45c1 100644
--- a/OSX/SaverRunner.m
+++ b/OSX/SaverRunner.m
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 2006-2017 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 2006-2018 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
@@ -1035,10 +1035,11 @@ relabel_menus (NSObject *v, NSString *old_str, NSString *new_str)
if (name) [result addObject: name];
}
- if (! [result count])
- result = 0;
-
- return result;
+ if (result && [result count])
+ return [result sortedArrayUsingSelector:
+ @selector(localizedCaseInsensitiveCompare:)];
+ else
+ return 0;
}