code's never perfect.. :) #2

Merged
merged 1 commit into from Aug 13, 2011
View
4 Morphic.m
@@ -54,9 +54,7 @@ - (void)logYourselfLevel:(NSInteger)level recordingVisitedObjects:(NSMutableSet*
// the information about the object's properties
NSArray *keys = [data allKeys];
- keys = [keys sortedArrayUsingComparator:^(id obj1, id obj2) {
- return [(NSString*)obj1 compare:obj2];
- }];
+ keys = [keys sortedArrayUsingSelector:@selector(compare:)];
for (NSString* key in keys)
{
View
4 PlistExplorer.m
@@ -69,9 +69,7 @@ - (void)logYourselfLevel:(NSInteger)level recordingVisitedObjects:(NSMutableSet*
{
// the information about the object's properties
NSArray *keys = [self allKeys];
- keys = [keys sortedArrayUsingComparator:^(id obj1, id obj2) {
- return [(NSString*)obj1 compare:obj2];
- }];
+ keys = [keys sortedArrayUsingSelector:@selector(compare:)];
for (NSString* key in keys)
{