Retrieving keys in dictionary in same index order
<p>I need to extract keys of a dictionary as the same order in dictionary.</p>

<p>Let's look at the code below: </p>

<pre><code> let farm: [String:String] = ["a":"b", "c":"d", "e":"f", "g":"h"]
    print(Array(farm.keys))  //printed result is ["e", "a", "g", "c"]
</code></pre>

<p>Is there a way to extract just keys like following?</p>

<pre><code>[ "a", "c", "e", "g" ]
</code></pre>

<p>I need to extract the key as in same order as in the dictionary. </p>

<p>If there is no way to achieve this, I would like to know if I can access Dictionary with index and retrieve key-value pair on that index.</p>