How to sort two lists? Sort distance
05-02-2016, 05:10 PM (This post was last modified: 05-02-2016 05:15 PM by Tyann.)
Post: #14
 Tyann Senior Member Posts: 327 Joined: Oct 2014
RE: How to sort two lists?
Quote:It sounds like you might want one to to one correspondence between the two lists. Sorting one, changes the relative position of the other. What if there were more than two lists? How would subsequent sorting work, or in the case where there are more than two lists, are you suggesting to ONLY sort on one specified list, with all others adjusted to the relative position of the sorted list?

That gets kind of convoluted! It's possible to do that programmatically, but I think probably too rigorous for a single command variant.

Oui, si il y a plusieurs listes, les autres suivent le mouvement de la première la commande SORT
du Ti BASIC le fait très bien.
Yes, if there are several lists , the others follow the movement of the first , the SORT command
Ti BASIC works fine .

Quote:Sorry for the misunderstanding. Here is a program doing what you want:
Merci beaucoup, j'avais moi aussi une solution programmée, mais la vôtre est beaucoup plus
courte.
Thank you very much , I too had a programmed solution , but yours is much
short.
Cependant la mienne si on lui transmet une seule liste, en renvoie 2 la liste triée et
une liste d'index selon l'ordre de tri.
However mine if he will receive one list , returns 2 in the sorted list and
an index list in the sort order .

Sorry for my english
 « Next Oldest | Next Newest »

 Messages In This Thread How to sort two lists? Sort distance - StephenG1CMZ - 04-29-2016, 07:06 PM RE: How to sort two lists? - parisse - 04-29-2016, 07:33 PM RE: How to sort two lists? - primer - 04-29-2016, 09:22 PM RE: How to sort two lists? - StephenG1CMZ - 04-30-2016, 10:04 AM RE: How to sort two lists? - parisse - 05-02-2016, 05:44 AM RE: How to sort two lists? - cyrille de brébisson - 05-02-2016, 04:56 AM RE: How to sort two lists? - Tyann - 05-02-2016, 05:32 AM RE: How to sort two lists? - Didier Lachieze - 05-02-2016, 06:57 AM RE: How to sort two lists? - Tyann - 05-02-2016, 10:35 AM RE: How to sort two lists? - Didier Lachieze - 05-02-2016, 04:00 PM RE: How to sort two lists? - Tyann - 05-02-2016 05:10 PM RE: How to sort two lists? - DrD - 05-02-2016, 11:11 AM RE: How to sort two lists? - StephenG1CMZ - 05-02-2016, 12:11 PM RE: How to sort two lists? - cyrille de brébisson - 05-02-2016, 03:34 PM RE: How to sort two lists? - ailoher - 12-03-2019, 10:24 AM RE: How to sort two lists? - Didier Lachieze - 12-03-2019, 05:02 PM RE: How to sort two lists? - StephenG1CMZ - 12-03-2019, 04:43 PM RE: How to sort two lists? - Albert Chan - 12-03-2019, 06:00 PM RE: How to sort two lists? - StephenG1CMZ - 12-03-2019, 07:30 PM RE: How to sort two lists? - ailoher - 12-05-2019, 06:55 PM RE: How to sort two lists? - StephenG1CMZ - 12-06-2019, 12:30 AM

User(s) browsing this thread: 2 Guest(s)