Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSArray *array = [dict allKeys];
- NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:
- @"01.Created",@"cre",
- @"02.Being Assigned",@"bea",
- @"03.Rejected",@"rej",
- @"04.Assigned",@"ass",
- @"05.Scheduled",@"sch",
- @"06.En Route",@"inr",
- @"07.On Job Site",@"ojs",
- @"08.In Progress",@"inp",
- @"09.On Hold",@"onh",
- @"10.Completed",@"com",
- @"11.Closed",@"clo",
- @"12.Cancelled", @"can",
- nil];
- NSArray *arr = [[dict allKeys] sortedArrayUsingSelector:@selector(localizedStandardCompare:)];
- NSArray *array = [dict allKeys];
- NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"self" ascending:NO];
- NSArray *descriptors = [NSArray arrayWithObject:descriptor];
- NSArray *orderedKeys = [array sortedArrayUsingDescriptors:descriptors];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement