rows and columns of tablemodel imported from a dictionary are not ordered
fanner01 opened this issue · comments
fanner01 commented
because the items in python dictionary are not ordered in the order that they're inserted, the rows and columns are not ordered if tablemodel with dictionary is used. the author may consider use an advanced dictionary data structure.
fanner01 commented
i just checked that it is solved in python 3.7
Changed in version 3.7: Dictionary order is guaranteed to be insertion order. This behavior was implementation detail of CPython from 3.6.
Damien Farrell commented
I will shortly add python 3 support so it should work then. Thanks.