<div dir="ltr">Hello Achim,<div><br></div><div>I am sending you the patch that does this, but I am sorry it is in a complicated context because I just took it out of the main program. It is a bit more complicated than the vague description I sent you earlier (better see paper)</div><div><br></div><div>but I put down your 2 lists as messages and it seems to do the trick.</div><div><br></div><div>ps. the code is almost 3 years old and I do think it could be done easier and more efficiently, but I hope it helps.</div><div><br></div><div>cheers</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 11:46 AM,  <span dir="ltr"><<a href="mailto:achim@bornhoeft.org" target="_blank">achim@bornhoeft.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi José,<div>thank you for your answer. Would it be possible to post the patch in which you did this ?</div><div>Achim</div><div><br><div><div>Am 15.12.2014 um 12:36 schrieb José Rafael Subía Valdez <<a href="mailto:jsubiavaldez@gmail.com" target="_blank">jsubiavaldez@gmail.com</a>>:</div><div><div><br><blockquote type="cite"><div dir="ltr">I did this for a musical interface created in a research project.<div><br></div><div><a href="http://lac.linuxaudio.org/2012/papers/9.pdf" target="_blank">http://lac.linuxaudio.org/2012/papers/9.pdf</a><br></div><div><br></div><div>check the 3.3.3 point.</div><div><br></div><div>but basically what I did is filled out a matrix (iemmatrix lib) and had 3 rows.</div><div><br></div><div>1. is the index,</div><div>2. is the first list (the one that the sorting is based on) sort it as you wish</div><div>3. is the other list.</div><div><br></div><div>this way you have the order of the your "ruling" list set by the first two rows. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 11:01 AM,  <span dir="ltr"><<a href="mailto:achim@bornhoeft.org" target="_blank">achim@bornhoeft.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I would like to sort 2 lists according to one of them sorted in ascending order (see attached patch).<br>
Can somebody help me with that ?<br>
Thanks a lot in advance,<br>
Achim<br>
<br>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br clear="all"><div><br></div>-- <br><div><div dir="ltr">José Rafael Subía Valdez<br><div><a href="http://www.jrsv.net/" target="_blank">www.jrsv.net</a><br><div><br></div><div><br><div><br><font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br></span></font></div></div></div></div></div>
</div>
</blockquote></div></div></div><br><div>
<div style="color:rgb(0,0,0);font-family:Courier;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Courier;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Courier;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">=>> 15GB Online Storage + 5GB über diesen link: <a href="https://copy.com?r=RnBKpx" target="_blank">https://copy.com?r=RnBKpx</a></div></div></div>
</div>
<br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div><div dir="ltr">José Rafael Subía Valdez<br><div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a><br><div><br></div><div><br><div><br><font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br></span></font></div></div></div></div></div>
</div></div>