summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Roitzsch <reactorcontrol@icloud.com>2017-08-29 11:40:44 +0200
committerGitHub <noreply@github.com>2017-08-29 11:40:44 +0200
commit38b910f7435e7f27e7d51182a9af8c50ee29fe34 (patch)
tree571725401be9d30d853d077159762c12036dc4d2 /src
parenta15c6410d4f1360b527e028f57b466edeaf32321 (diff)
downloadunison-38b910f7435e7f27e7d51182a9af8c50ee29fe34.zip
unison-38b910f7435e7f27e7d51182a9af8c50ee29fe34.tar.gz
unison-38b910f7435e7f27e7d51182a9af8c50ee29fe34.tar.bz2
sort the list of profiles
on APFS file systems, NSFileManager enumerates directories in an unspecified order
Diffstat (limited to 'src')
-rw-r--r--src/uimac14/ProfileController.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/uimac14/ProfileController.m b/src/uimac14/ProfileController.m
index cc6c7ed..bc74924 100644
--- a/src/uimac14/ProfileController.m
+++ b/src/uimac14/ProfileController.m
@@ -35,6 +35,9 @@ NSString *unisonDirectory()
j++;
}
}
+ NSSortDescriptor *sort = [NSSortDescriptor sortDescriptorWithKey:nil ascending:YES];
+ [profiles sortUsingDescriptors:[NSArray arrayWithObject:sort]];
+
if (j > 0)
[tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO];