Getting sorting order



Hi all,

I cannot find anything on this:
I have a few lists, and would like to sort one of them (sorting-master
list).
Then I would like to sort all other lists according to how the first
one was sorted (sorting-slave lists).

Is there a standard way to do that?
From what I know sort() and sorted() do not return the order of
sorting.
Maybe I have to write some more code.

Ciao, leodp
.



Relevant Pages

  • Re: Getting sorting order
    ... I have a few lists, and would like to sort one of them (sorting-master ... slave = ...
    (comp.lang.python)
  • Panic, a strange behavior of lisp program
    ... when SORT is called with a parameter that includes some that ... No actually although CLtL ... this apparent mistake in conversion from CLtL to ANSI-CL. ... Web page that lists all such "obvious" mistakes. ...
    (comp.lang.lisp)
  • RE: Incident investigation methodologies
    ... However, what sort of reaction ... Speculation gets you nowhere. ... > malware we encounter. ... > of what makes public lists useful - you can get some ...
    (Incidents)
  • Re: Detailed explanation of how a QuickSort Works
    ... Firstly, if you consider the simple "Bubble Sort" algorithm, it works by running through the entire data set, one item at a time, comparing each item to the previous item and swapping them if they are not already in the correct order. ... by simply running through the entire list just once (and splitting it into two smaller lists) you have cut the sorting time in half. ...
    (microsoft.public.vb.general.discussion)
  • Re: Ordering Products
    ... algorithms. ... lists with constrained item transpositions. ... I think while the built in sort works as a convenience, ... Overall it's about 10 times slower than pythons built in sort for large ...
    (comp.lang.python)