I have dict in Python with keys of the following form:
mydict = {\'0\' : 10, \'1\' : 23, \'2.0\' : 321, \'2.1\' : 3
There is a nice sorting HOWTO on the python web site: http://wiki.python.org/moin/HowTo/Sorting . It makes a good introduction to sorting, and discusses different techniques to adapt the sorting result to your needs.