filter data of NSArry from plist
<p>I want to filter data by city wise and print it into table section wise.
I have code like this.</p>

<pre><code>NSMutableArray *key1=[NSMutableArray arrayWithCapacity:count];
NSMutableArray *city=[NSMutableArray arrayWithCapacity:count];
NSMutableArray *name= [NSMutableArray arrayWithCapacity:count];
for(id key in data) {
    [key1 addObject:key];
}
for (int i=0;i&lt;[key1 count]; i++) {
    NSLog(@"key:%@",[key1 objectAtIndex:i]);
}
for (int i=0;i&lt;[key1 count]; i++) {
    NSDictionary *email_key=[data objectForKey:[key1 objectAtIndex:i]];
    [city addObject:[email_key objectForKey:@"city"]]; 
    [name addObject:[email_key objectForKey:@"f_name"]];
}
</code></pre>

<p>I have array of city that are from plist.</p>

<p>My Plist's content:</p>

<pre><code>&lt;key&gt;bh@gmail.com&lt;/key&gt;
&lt;dict&gt;
    &lt;key&gt;fnmae&lt;/key&gt;&lt;string&gt;hello&lt;/string&gt;
    &lt;key&gt;city&lt;/key&gt;&lt;string&gt;DElhi&lt;/string&gt;
&lt;/dict&gt;
&lt;dict&gt;
    &lt;key&gt;fnmae&lt;/key&gt;&lt;string&gt;hi&lt;/string&gt;
    &lt;key&gt;city&lt;/key&gt;&lt;string&gt;Bombay&lt;/string&gt;
&lt;/dict&gt;
</code></pre>
