NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"self" ascending:YES];
sortedFloats = [Arr_distance sortedArrayUsingDescriptors:
[NSMutableArray arrayWithObject:sortDescriptor]];
where sortedFloats is NSMutableArray and Arr_distance is also NSMutableArray
I got the warning Incompatible pointer types assigning to 'NSMutableArray ' from 'NSArray ' still result is correct, but whats the warning about?