title: Order of values when extracting Python dict to list
body: <p>I am trying to get all values (except corresponding to a particular key) from a list of dicts by doing this: </p>
  
  <pre><code>fv = [[v for (k,v) in d.iteritems() if k is not 'xKey'] for d in someDict] 
  </code></pre>
  
  <p>where <code>someDict</code> is like:</p>
  
  <pre><code>[{xKey:0.1,yKey:0.2,zKey:0.3},{yKey:0.9,xKey:0.7,zKey:0.4}...]
  </code></pre>
  
  <p>I know a dict doesn't have an inherent order. But my list of lists fv needs to have the values in order. I am thinking about sorting the dict on key and then doing what I just did. But is that guaranteed to work? </p>
  
  <p>I know using <code>OrderedDict</code> is an option but it also seems to have inferior performance as compared to dict, which would be a concern for me since my dictionary is typically going to have huge amount of data. </p>
  
  <p>Update : When I say I need values in order, they don't really have to be sorted.What I mean is I need to be able to retrieve the list of values in a fixed deterministic order each time.In the above example, I always want to get [[0.2,0.3],[0.9,0.4]] although it may not be a sorted order per se. Sorting would enforce one deterministic order.What I really care about is maintaining the position of values in the final list.e.g. Value of yKey must always be the first value in each list, the value of zKey must always be the second value in each list and so on even though ykey, zkey etc may be in any order in the dictionary. </p>