summaryrefslogtreecommitdiffstats
path: root/OSX/SaverListController.m
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-18 11:55:41 +0100
committerSimon Rettberg2019-02-18 11:55:41 +0100
commitae69a754244c4e475c8d2591772ca8e005071d83 (patch)
tree58b3fa7abc2dcfe3c23e1c0ce108950c720826ab /OSX/SaverListController.m
parentUpdate gitignore (diff)
downloadxscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.gz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.xz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.zip
Update to 5.42
Diffstat (limited to 'OSX/SaverListController.m')
-rw-r--r--OSX/SaverListController.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/OSX/SaverListController.m b/OSX/SaverListController.m
index 9377275..e68387c 100644
--- a/OSX/SaverListController.m
+++ b/OSX/SaverListController.m
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 2012-2014 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 2012-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
@@ -225,6 +225,8 @@
for (int i = 0; i < n; i++) {
if ([list_by_letter[i] count] > 0) {
active_section_count++;
+ [list_by_letter[i] sortUsingSelector:
+ @selector(localizedCaseInsensitiveCompare:)];
[letter_sections addObject: list_by_letter[i]];
if (i <= 'Z'-'A')
[section_titles addObject: [NSString stringWithFormat: @"%c", i+'A']];