title: initialize ordereddict in python
body: <p>I am new in Python.</p>
  
  <p>I am trying to create many <code>ordereddict</code>,but because I am filling it out in messed sequence I had to create a function to pass in the normal dict to get the order I want.</p>
  
  <pre><code>info = dict()
  info['age'] = 3
  ...
  
  keys=['id','name','age','ck_id','image']
  def fix_order(my_dict):
      new_queue = OrderedDict()
      for k in keys:
          new_queue[k] = item[k]
      return new_queue
  </code></pre>
  
  <p>What I want to do is to create a simple class which already has the order I want no matter the sequence of filling it.</p>
  
  <p>I checked this question<a href="https://stackoverflow.com/questions/45114985/how-to-create-an-ordereddict-in-python">How to create an OrderedDict in Python?</a>, but this assumes I have the values first hand.</p>
  
  <p>i.e what I want <code>info = my_dict()</code> #already has the sequence (order) built in</p>