Filter on NSMutableArray with NSPredicate - Return No result
<p>I got a NSMutableArray* that looks like below and am trying to use a NSPredicate to filter it to return only those that am interested in base upon there status.</p>

<p>After it execute the result variable is empty so for some reason its not filtering, any ideas?</p>

<p>Thanks</p>

<p>Code:</p>

<pre><code>NSPredicate *predicate = [NSPredicate predicateWithFormat:@"StatusId == %i", aOrderStatus ];
NSLog(@"%@", [predicate debugDescription]);
NSArray *result = [aOrdersList filteredArrayUsingPredicate: predicate];
NSLog(@"getRestaurantOrderList - result: %@", [result debugDescription]);
return [result mutableCopy];
</code></pre>

<p>aOrdersList array content:</p>

<pre><code>{
    StatusId = 0;
    cost = "22.950000762939";
    name = "Pieter Uys";
    number = 0823630937;
    order = "1/4 Chicken - SPICE: L";
    "order detail" = "SPICE: L";
    "order title" = "1/4 Chicken";
    orderNo = 2;
    orderNoDisplay = ORD0000000002;
    quantity = 1;
    restaurant = Nandos;
    time = " 20 min ";
},
{
    StatusId = 0;
    cost = "41.950000762939";
    name = "Pieter Uys";
    number = 0823630937;
    order = "1/4 CHICKEN MEAL - Side: CHIPS, Drink: COKE, SPICE: L";
    "order detail" = "Side: CHIPS, Drink: COKE, SPICE: L";
    "order title" = "1/4 CHICKEN MEAL";
    orderNo = 3;
    orderNoDisplay = ORD0000000003;
    quantity = 1;
    restaurant = Nandos;
    time = " 20:00 ";
},
</code></pre>
