[docs] [issue35956] Sort documentation could be improved for complex sorting
Raymond Hettinger
report at bugs.python.org
Sun Feb 10 20:39:54 EST 2019
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
It seems to me that the sorting howto covers this topic.
If I'm reading the OP's task correctly, it isn't complex at all:
points.sort(key=attrgetter('x', 'y')) # x is primary key; y is secondary
----------
assignee: docs at python -> rhettinger
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35956>
_______________________________________
More information about the docs
mailing list