Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92157

Re: Sorting in reverse is not the same as sorting then reversing

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:same': 0.07; 'cc:addr:python-list': 0.10; 'algorithm.': 0.16; 'sorting': 0.16; 'wrote:': 0.16; 'skip': 0.18; 'stefan': 0.18; 'subject:not': 0.18; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'am,': 0.23; '2015': 0.23; "python's": 0.23; 'header:In-Reply-To:1': 0.24; 'sort': 0.25; 'message-id:@mail.gmail.com': 0.28; 'fri,': 0.31; 'received:google.com': 0.34; 'subject:: ': 0.37; 'subject:the': 0.40; 'valuable': 0.61; 'times': 0.61
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DX4dnAxqdYAcWTCikxP04iDHNZKA7lg/U0PRblJ+3fY=; b=XudWHI0lbG2bNPGxvakI0UbwCVZwtKpGFjvQyyX4Xhc8AB0h6U02IyTbHJYjSzkhpT vCqh+2HSch0RYmLn+Bv7fwPD7X+QZvw/pqgHA981V5TR8W8GxsWjmNWYC62gJdzaya3X KQJUK0qxkMbzHWP9mYm5R/bBF90UG8c1bc+qwZaSrkTl0tRFLVj3/kHDZipngDcKCTTl GkUoaVmh4clfgNxB6niCfnOblXIee2lHkrZ9d6HtAgMFLBUT1pmJo6Bip/rO5Oy0sFTu oo4wFxuRqF+7bu5+zjnCNoVTzuzJY9GoL+WNI/uM+187ooUc7B/vU/26wCuLda8ayaJU Qyrw==
MIME-Version 1.0
X-Received by 10.182.24.40 with SMTP id r8mr3458412obf.15.1433518126313; Fri, 05 Jun 2015 08:28:46 -0700 (PDT)
In-Reply-To <mkscv8$6q2$1@ger.gmane.org>
References <5571ad0c$0$13005$c3e8da3$5496439d@news.astraweb.com> <mkscv8$6q2$1@ger.gmane.org>
Date Fri, 5 Jun 2015 10:28:46 -0500
Subject Re: Sorting in reverse is not the same as sorting then reversing
From Skip Montanaro <skip.montanaro@gmail.com>
To Stefan Behnel <stefan_ml@behnel.de>
Cc Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.204.1433518134.13271.python-list@python.org> (permalink)
Lines 6
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1433518134 news.xs4all.nl 2959 [2001:888:2000:d::a6]:59154
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3059
X-Received-Body-CRC 2760005279
Xref csiph.com comp.lang.python:92157

Show key headers only | View raw


On Fri, Jun 5, 2015 at 9:50 AM, Stefan Behnel <stefan_ml@behnel.de> wrote:
> [Stable sorting is] a general property of Python's sort algorithm.

And at times an extremely valuable property.

Skip

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Sorting in reverse is not the same as sorting then reversing Steven D'Aprano <steve@pearwood.info> - 2015-06-06 00:07 +1000
  Re: Sorting in reverse is not the same as sorting then reversing Stefan Behnel <stefan_ml@behnel.de> - 2015-06-05 16:50 +0200
  Re: Sorting in reverse is not the same as sorting then reversing Peter Otten <__peter__@web.de> - 2015-06-05 16:59 +0200
  Re: Sorting in reverse is not the same as sorting then reversing Skip Montanaro <skip.montanaro@gmail.com> - 2015-06-05 10:28 -0500

csiph-web