<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/16013" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2008-08-12T19:49:18-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/16013</id>

		<entry>
		<author><name><![CDATA[FallFromGrace]]></name></author>
		<updated>2008-08-12T19:49:18-04:00</updated>

		<published>2008-08-12T19:49:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84565#p84565</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84565#p84565"/>
		<title type="html"><![CDATA[lsort - need two-pass sort :O]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84565#p84565"><![CDATA[
it works ^^<br><br>tnx you )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10083">FallFromGrace</a> — Tue Aug 12, 2008 7:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-08-12T11:49:11-04:00</updated>

		<published>2008-08-12T11:49:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84558#p84558</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84558#p84558"/>
		<title type="html"><![CDATA[lsort - need two-pass sort :O]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84558#p84558"><![CDATA[
lsort uses a merge-sort, and depending on the merge-algorithm, you <strong class="text-strong">might</strong> be able to get away with something like this:<br><div class="codebox"><p>Code: </p><pre><code>set newlist [lsort -index 2 -decreasing [lsort -index 1 -decreasing $list]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Aug 12, 2008 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FallFromGrace]]></name></author>
		<updated>2008-08-12T11:13:48-04:00</updated>

		<published>2008-08-12T11:13:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84557#p84557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84557#p84557"/>
		<title type="html"><![CDATA[lsort - need two-pass sort :O]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84557#p84557"><![CDATA[
i have a list with such elements: <br>{kelly 15 1}<br>{john 50 4} <br>{jack 80 2} <br>{bill 70 3} <br>{ann 30 2} <br>{james 100 1}<br><br>so i need to sort it, to get:<br>{john 50 4} <br>{bill 70 3} <br>{jack 80 2} <br>{ann 30 2} <br>{james 100 1}<br>{kelly 15 1}<br><br>with first sort by 3th value and second sort by 2th value..<br><br>maximum that i can get is a list sorted by 2th or 3th value... [lsort -index 1 or 2 -decreasing $list]<br><br>how to sort it again?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10083">FallFromGrace</a> — Tue Aug 12, 2008 11:13 am</p><hr />
]]></content>
	</entry>
	</feed>
