title: How to set object and keys to NSMutabledictionary in correct order
body: <p>I am trying set objects for particular keys to an <code>NSMutableDictionary</code> in a <code>for</code> loop </p>
  
  <p>The code:</p>
  
  <pre><code>for(int k =0;k&lt;currenyArry.count;k++)
  {
      [_currenies setObject:@"0" forKey:currenyArry[k]];
  }
  </code></pre>
  
  <p>Here, <code>_currenies</code> is an <code>NSMutableDictionary</code> and <code>currenyArry</code> is an <code>NSMutableArray</code>. </p>
  
  <p>For example, <code>currentArry</code> is:</p>
  
  <pre><code>[1,3,5,10,100,500,1000];
  </code></pre>
  
  <p>After setting the objects in <code>_currenies</code> dictionary, it looks like:</p>
  
  <pre><code>{1:"0",10:"0",100:"0",1000:"0",3:"0",5:"0",500:"0"}
  </code></pre>
  
  <p>But I need the order based on my <code>currenyArry</code> like </p>
  
  <pre><code>{1:"0",3:"0",5:"0",10:"0",100:"0",500:"0",1000:"0"}
  </code></pre>
  
  <p>How can I modify my code to achieve this?</p>