What's the neatest way of getting dictionary entries in a specified order?

Chris Green cl at isbd.net
Thu Mar 9 08:09:50 EST 2017

Michael Torrie <torriem at gmail.com> wrote:
> On 03/08/2017 12:27 PM, Chris Green wrote:
> > I have a fairly simple application that populates a GUI window with
> > fields from a database table.  The fields are defined/configured by a
> > dictionary as follows:-
> Instead of ordering the data in Python, why not rely on the GUI to do
> the sort?  Most GUI's even have table widgets that let you click on the
> headings to sort arbitrarily.
How would it sort it?  The order I want is arbitrary, or at least not
alphabetical or anything, I just want the order to be the way I
listed it.

Chris Green

More information about the Python-list mailing list