<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi José,<div>thanks a lot for your help. I will try to adapt it to my needs and drop you a note when I succeed :-)</div><div>Best, Achim</div><div><br><div><div>Am 15.12.2014 um 15:20 schrieb José Rafael Subía Valdez <<a href="mailto:jsubiavaldez@gmail.com">jsubiavaldez@gmail.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Got a bit caught up on this, its fun<div><br></div><div>but this is the simplest I can provide now. This patch does exactly what you wanted.</div><div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 1:04 PM, José Rafael Subía Valdez <span dir="ltr"><<a href="mailto:jsubiavaldez@gmail.com" target="_blank">jsubiavaldez@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">oops, sorry about that, I ment to say that if you put down the two lists you can follow what i did, not necessarily the sorting that you want, but its a start, and actually, what you want is easier (I think), but take a look.<div><br></div><div>let me see if I can make a simpler example and send it<br><div><br></div><div>cheers </div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 11:36 AM, José Rafael Subía Valdez <span dir="ltr"><<a href="mailto:jsubiavaldez@gmail.com" target="_blank">jsubiavaldez@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"><div>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:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>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></div>_______________________________________________<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><span><font color="#888888"><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>
</font></span></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></div></blockquote></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><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>
<span><Sort2-JRSV2.pd></span></blockquote></div><br><div apple-content-edited="true">
<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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">=>> 15GB Online Storage + 5GB über diesen link: <a href="https://copy.com?r=RnBKpx">https://copy.com?r=RnBKpx</a></div></div></div>
</div>
<br></div></body></html>