Message 335187 - Python tracker

Message335187

Author rhettinger
Recipients FabriceSalvaire, SilentGhost, cheryl.sabella, docs@python, rhettinger
Date 2019-02-11.01:39:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549849191.43.0.52561484247.issue35956@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-02-11 01:39:53rhettingersetrecipients: + rhettinger, SilentGhost, docs@python, cheryl.sabella, FabriceSalvaire
2019-02-11 01:39:51rhettingersetmessageid: <1549849191.43.0.52561484247.issue35956@roundup.psfhosted.org>
2019-02-11 01:39:51rhettingerlinkissue35956 messages
2019-02-11 01:39:51rhettingercreate