aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPUserManager.h1
-rw-r--r--Source/SPUserManager.m7
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/SPUserManager.h b/Source/SPUserManager.h
index 48c8ad3f..0e619563 100644
--- a/Source/SPUserManager.h
+++ b/Source/SPUserManager.h
@@ -69,4 +69,5 @@
- (BOOL)updateUsers:(NSArray *)updatedUsers;
- (BOOL)grantPrivilegesToUser:(NSManagedObject *)user;
+- (NSArray *)treeSortDescriptors;
@end
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m
index 40ec31e4..0a362395 100644
--- a/Source/SPUserManager.m
+++ b/Source/SPUserManager.m
@@ -226,6 +226,7 @@
}
// Reload data of the outline view with the changes.
[outlineView reloadData];
+ [treeController rearrangeObjects];
}
/**
@@ -375,6 +376,12 @@
}
}
+- (NSArray *)treeSortDescriptors
+{
+ NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"displayName" ascending:YES];
+ return [NSArray arrayWithObject:descriptor];
+}
+
#pragma mark -
#pragma mark General IBAction methods