diff options
author | Michael Roitzsch <reactorcontrol@icloud.com> | 2017-08-29 11:40:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 11:40:44 +0200 |
commit | 38b910f7435e7f27e7d51182a9af8c50ee29fe34 (patch) | |
tree | 571725401be9d30d853d077159762c12036dc4d2 /src | |
parent | a15c6410d4f1360b527e028f57b466edeaf32321 (diff) | |
download | unison-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.m | 3 |
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]; |