Mark Dickinson <dicki...@gmail.com> added the comment:

> In this example, I'm sort by item number 1, which is a list, and its
> first value is an int.

?  You're sorting by the values of the dict d, and those values have the form 
[int, int, dict];  so when the two ints match (e.g., in your data, there are 
two values of the form [64, 124, {...}]) there's a dictionary comparison.

Did you mean to do:

    sorted(d.values(), key=operator.itemgetter(1), reverse=1)

?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12324>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to