<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: sorting one group of numbers to match another one</title>
		<atom:link href="http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 01:47:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-32573</guid>
					<title><![CDATA[sorting one group of numbers to match another one]]></title>
					<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-32573</link>
					<pubDate>Fri, 22 Jun 2007 00:52:53 +0000</pubDate>
					<dc:creator>Dan Nigrin</dc:creator>

					<description>
						<![CDATA[
						<p>I have two groups of numbers, each one in a coll, with one number per &#8220;row&#8221;.</p>
<p>One group is a subset of the other &#8211; for example:</p>
<p>group A = 1 3 2 5 4<br />
group B = 1 4 5</p>
<p>I want the ordering of the numbers in group B to follow the pattern set in group A; in the example above, I would like group B to be reordered like so:</p>
<p>1 5 4</p>
<p>I can think of brute force ways to do this, but I was looking for something &#8220;elegant&#8221; &#8211; any takers?  I can also use lists rather than colls if that helps&#8230;</p>
<p>Thanks,<br />
Dan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107485</guid>
					<title><![CDATA[Re: sorting one group of numbers to match another one]]></title>
					<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107485</link>
					<pubDate>Fri, 22 Jun 2007 01:21:39 +0000</pubDate>
					<dc:creator>Trum</dc:creator>

					<description>
						<![CDATA[
						<p>Not sure if theres an &#8216;out of the box&#8217; solution I can think of &#8211; but if an easier than brute force method exists, I bet you&#8217;d find it in L-objects.</p>
<p>Hope this helps</p>
<p>T</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107486</guid>
					<title><![CDATA[Re: sorting one group of numbers to match another one]]></title>
					<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107486</link>
					<pubDate>Fri, 22 Jun 2007 02:11:12 +0000</pubDate>
					<dc:creator>Dan Nigrin</dc:creator>

					<description>
						<![CDATA[
						<p>It does help Tristram &#8211; Lswap is exactly what I need.  Thanks!</p>
<p>And thanks Peter Elsea!!!</p>
<p>Dan</p>
<p>At 7:21 PM -0600 6/21/07, Tristram Cox wrote:<br />
>Not sure if theres an &#8216;out of the box&#8217; solution I can think of &#8211; but <br />
>if an easier than brute force method exists, I bet you&#8217;d find it in <br />
>L-objects.<br />
><br />
>Hope this helps</p>
<p>&#8211; <br />
Dan Nigrin<br />
Defective Records<br />
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major <br />
Malfunction<br />
<a href="http://www.defectiverecords.com" rel="nofollow">http://www.defectiverecords.com</a></p>
<p><a href="http://www.jackosx.com" rel="nofollow">http://www.jackosx.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107487</guid>
					<title><![CDATA[Re: sorting one group of numbers to match another one]]></title>
					<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107487</link>
					<pubDate>Fri, 22 Jun 2007 02:30:45 +0000</pubDate>
					<dc:creator>Gary Lee Nelson</dc:creator>

					<description>
						<![CDATA[
						<p>Post your solution.</p>
<p>
On 6/21/07 10:11 PM, &#8220;Dan Nigrin&#8221; <dan @defectiverecords.com> wrote:</dan></p>
<p>> It does help Tristram &#8211; Lswap is exactly what I need.  Thanks!<br />
> <br />
> And thanks Peter Elsea!!!<br />
> <br />
> Dan</p>
<p>
Cheers<br />
Gary Lee Nelson<br />
Oberlin College<br />
<a href="http://www.timara.oberlin.edu/GaryLeeNelson" rel="nofollow">http://www.timara.oberlin.edu/GaryLeeNelson</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107488</guid>
					<title><![CDATA[Re: sorting one group of numbers to match another one]]></title>
					<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107488</link>
					<pubDate>Fri, 22 Jun 2007 09:56:08 +0000</pubDate>
					<dc:creator>gusanomaxlist</dc:creator>

					<description>
						<![CDATA[
						<p>What about zl sect ?</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P message 112 184 48 9109513;<br />
#P newex 112 158 57 9109513 prepend set;<br />
#P newex 112 131 57 9109513 zl sect;<br />
#P message 159 67 29 9109513 1 4 5;<br />
#P message 112 104 45 9109513 1 3 2 5 4;<br />
#P connect 1 0 0 0;<br />
#P connect 1 0 2 1;<br />
#P connect 3 0 4 0;<br />
#P connect 2 0 3 0;<br />
#P connect 0 0 2 0;<br />
#P window clipboard copycount 5;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107489</guid>
					<title><![CDATA[Re: sorting one group of numbers to match another one]]></title>
					<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107489</link>
					<pubDate>Fri, 22 Jun 2007 11:34:28 +0000</pubDate>
					<dc:creator>Dan Nigrin</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for forcing the issue Gary &#8211; in building the example I realize <br />
now that it will not work, at least without a bit more work.  I just <br />
tried playing around with the Lswap help file, and it all seemed to <br />
work fine there &#8212; but that&#8217;s because the examples I tried it with <br />
there all included &#8220;0&#8243; in the list; in my example, in which there&#8217;s <br />
no 0 element in the list, it will not work:</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P message 139 236 75 196617;<br />
#P window linecount 1;<br />
#P newex 139 211 62 196617 prepend set;<br />
#P button 130 133 15 0;<br />
#P newex 170 133 48 196617 loadbang;<br />
#P newex 139 190 36 196617 lswap;<br />
#P message 130 163 34 196617 1 4 5;<br />
#P message 170 162 52 196617 1 3 2 5 4;<br />
#P connect 4 0 1 0;<br />
#P connect 1 0 2 0;<br />
#P connect 2 0 5 0;<br />
#P connect 5 0 6 0;<br />
#P connect 0 0 2 1;<br />
#P connect 3 0 0 0;<br />
#P window clipboard copycount 7;</p>
<p>I&#8217;m sure I can find a way around this though&#8230;</p>
<p>Dan</p>
<p>At 10:30 PM -0400 6/21/07, Gary Lee Nelson wrote:<br />
>Post your solution.</p>
<p>&#8211; <br />
Dan Nigrin<br />
Defective Records<br />
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major <br />
Malfunction<br />
<a href="http://www.defectiverecords.com" rel="nofollow">http://www.defectiverecords.com</a></p>
<p><a href="http://www.jackosx.com" rel="nofollow">http://www.jackosx.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107490</guid>
					<title><![CDATA[Re: sorting one group of numbers to match another one]]></title>
					<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107490</link>
					<pubDate>Fri, 22 Jun 2007 11:36:50 +0000</pubDate>
					<dc:creator>Dan Nigrin</dc:creator>

					<description>
						<![CDATA[
						<p>Interesting, thanks!  It seems as though zl sect preserves the order <br />
of the list that is given to it in its left inlet, which does seem <br />
like it will work for my purposes.  Plus using native objects!</p>
<p>Thanks again,<br />
Dan</p>
<p>At 2:56 AM -0700 6/22/07, e.g.r. wrote:<br />
>What about zl sect ?<br />
><br />
>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
>#P window linecount 1;<br />
>#P message 112 184 48 9109513;<br />
>#P newex 112 158 57 9109513 prepend set;<br />
>#P newex 112 131 57 9109513 zl sect;<br />
>#P message 159 67 29 9109513 1 4 5;<br />
>#P message 112 104 45 9109513 1 3 2 5 4;<br />
>#P connect 1 0 0 0;<br />
>#P connect 1 0 2 1;<br />
>#P connect 3 0 4 0;<br />
>#P connect 2 0 3 0;<br />
>#P connect 0 0 2 0;<br />
>#P window clipboard copycount 5;<br />
><br />
></p>
<p>
&#8211; <br />
Dan Nigrin<br />
Defective Records<br />
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major <br />
Malfunction<br />
<a href="http://www.defectiverecords.com" rel="nofollow">http://www.defectiverecords.com</a></p>
<p><a href="http://www.jackosx.com" rel="nofollow">http://www.jackosx.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107491</guid>
					<title><![CDATA[Re: sorting one group of numbers to match another one]]></title>
					<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107491</link>
					<pubDate>Fri, 22 Jun 2007 13:40:03 +0000</pubDate>
					<dc:creator>Gary Lee Nelson</dc:creator>

					<description>
						<![CDATA[
						<p>Strings of max objects are clumsy for this sort of thing. Perhaps java,<br />
lisp, or my personal favorite, APL (A Programming Language).  In APL this is<br />
one line of code.  Java and maxlisp (is it UB yet) are already available in<br />
max.  APL is a fantasy of mine.  What ever happened to pyrite?</p>
<p>
On 6/22/07 7:34 AM, &#8220;Dan Nigrin&#8221; <dan @defectiverecords.com> wrote:</dan></p>
<p>> Thanks for forcing the issue Gary &#8211; in building the example I realize<br />
> now that it will not work, at least without a bit more work.  I just<br />
> tried playing around with the Lswap help file, and it all seemed to<br />
> work fine there &#8212; but that&#8217;s because the examples I tried it with<br />
> there all included &#8220;0&#8243; in the list; in my example, in which there&#8217;s<br />
> no 0 element in the list, it will not work:</p>
<p>
Cheers<br />
Gary Lee Nelson<br />
Oberlin College<br />
<a href="http://www.timara.oberlin.edu/GaryLeeNelson" rel="nofollow">http://www.timara.oberlin.edu/GaryLeeNelson</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107492</guid>
					<title><![CDATA[Re: sorting one group of numbers to match another one]]></title>
					<link>http://cycling74.com/forums/topic/sorting-one-group-of-numbers-to-match-another-one/#post-107492</link>
					<pubDate>Tue, 26 Jun 2007 13:07:23 +0000</pubDate>
					<dc:creator>Stefan Tiedje</dc:creator>

					<description>
						<![CDATA[
						<p>Gary Lee Nelson schrieb:<br />
> What ever happened to pyrite?</p>
<p>Turned into Supercollider long ago&#8230;.</p>
<p>&#8211; <br />
Stefan Tiedje&#8212;&#8212;&#8212;&#8212;x&#8212;&#8212;-<br />
&#8211;_____&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8211;(_|_ &#8212;-|&#8212;&#8211;|&#8212;&#8211;()&#8212;&#8212;-<br />
&#8211; _|_)&#8212;-|&#8212;&#8211;()&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;-()&#8212;&#8212;&#8211;www.ccmix.com</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

