Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Sorting

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 635
    Comment on it

    NSSortDescriptor *frequencyDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"" ascending:NO comparator:^(id obj1, id obj2) { return [obj1 compare:obj2 options:NSNumericSearch]; }];

    NSEnumerator * enumerator = [arr_distance objectEnumerator];

    NSArray * descriptors = [NSArray arrayWithObjects:frequencyDescriptor, nil];

    NSArray * sortedArray = [arr_distance sortedArrayUsingDescriptors:descriptors];

    enumerator = [sortedArray objectEnumerator];

    NSLog(@"sortedArray = %@",sortedArray);

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: