I have an array **appd.arrOfDictAppProd**, in there is a a key **Price** which is a String value. But i want to sort this array by Price value. So I fetch Price key from **appd.arrOfDictAppProd** array and convert Price to String to Int, then make an NSMutableArray **newarray** without any key. I want to sort this using **NSSortDescriptor** this without use of any **Key** because in my newarray have no key. My code is here:

```
for (int i = 0; i<appd.arrOfDictAppProd.count; i++) {
    NSString *price_Value = [[appd.arrOfDictAppProd objectAtIndex:indexPath.row] objectForKey:@"price"];
    int price_IntValue = [price_Value intValue];
    NSLog(@"int value of prices:%d",price_IntValue);

    NSNumber *num = [NSNumber  numberWithInteger:price_IntValue];
    NSLog(@"number-%@",num);
    [newarray addObject:num];

}
NSLog(@"price array:%@",newarray);

NSSortDescriptor *sortDescriptor;
sortDescriptor =[[NSSortDescriptor alloc] initWithKey:@"num"
                                                    ascending:YES];
NSArray *sortDescriptors = [NSArray arrayWithObject:sortDescriptor];
NSArray *sortedArray1;
sortedArray1 = [newarray sortedArrayUsingDescriptors:sortDescriptors];

```

When i run my program, in the **newarray** I have 14 values but these are same, that is 3.