This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDictionary *original = @{ | |
@"Campo de Teste" : @{@"order" : @"1"}, | |
@"Alguma coisa" : @{@"order" : @"4"}, | |
@"outro teste" : @{@"order" : @"2"}, | |
@"fala cara" : @{@"order" : @"3"}, | |
}; | |
NSArray *sortedArray; | |
sortedArray = [original.allKeys sortedArrayUsingComparator:^NSComparisonResult(NSString *a, NSString *b) { |