title: How can I have the tkintertable table's columns sorted the way they are in the dictionary?
body: <p>I am working with <strong>python 2.7 64bit on Windows (using Pycharm)</strong> and want to display some data in a table for a project of mine. I tried using pandastable at first but gave up since it searches for the names python 3. has for tkinter. My problem is that, given the dictionary with the data to import for example:</p>
  
  <pre><code>data={'1': {'Klasa':'6A', 'E Hene': 1, 'E Marte': 2,'E Merkurre':3,'E Enjte':4,'E Premte':5},
        '2': {'Klasa':'', 'E Hene': 1, 'E Marte': 2,'E Merkurre':3,'E Enjte':4,'E Premte':5}}
  </code></pre>
  
  <p>I expected that the columns names were sorted the same order they are in the dictionary but that is not the case. They are actually sorted:</p>
  
  <pre><code>'E Enjte', 'Klasa', 'E Premte', 'E Merkurre', 'E Hene', 'E Marte'
  </code></pre>
  
  <p>from left to right.
  Below is the code I was testing.</p>
  
  <pre><code>from Tkinter import *
  from tkintertable.Tables import TableCanvas
  from tkintertable.TableModels import TableModel
  master=Tk()
  tframe = Frame(master)
  tframe.pack(fill='both')
  data={'1': {'Klasa':'6A', 'E Hene': 1, 'E Marte': 2,'E Merkurre':3,'E Enjte':4,'E Premte':5},
        '2': {'Klasa':'', 'E Hene': 1, 'E Marte': 2,'E Merkurre':3,'E Enjte':4,'E Premte':5}}
  model = TableModel()
  table = TableCanvas(tframe,model=model)
  table.createTableFrame()
  model = table.model
  model.importDict(data) #can import from a dictionary to populate model
  master.mainloop()
  </code></pre>