<?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/11758" />

	<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>2006-05-01T13:39:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ZeRoMe]]></name></author>
		<updated>2006-05-01T13:39:16-04:00</updated>

		<published>2006-05-01T13:39:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62537#p62537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62537#p62537"/>
		<title type="html"><![CDATA[Sort database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62537#p62537"><![CDATA[
To sort correctly your score you must place item in first place, for exemple:<br>345,nick1,23,56<br>To order by item 4 (56) place this in first position:<br>56,345,nick1,23<br>Use split and lindex commands.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7717">ZeRoMe</a> — Mon May 01, 2006 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[oxygen]]></name></author>
		<updated>2006-05-01T12:50:15-04:00</updated>

		<published>2006-05-01T12:50:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62534#p62534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62534#p62534"/>
		<title type="html"><![CDATA[Sort database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62534#p62534"><![CDATA[
Hello<br><br>I'll try to explaine it better. The database is part of a trivia game.<br>The first item is the yearly score, third item monthly score and so on.<br>With the above code the database is sorted by the first item, the yearly score. When I do a top 10 then it counts the yearly score. What I want is a top 10 score with the third item, the monthly score. How can I sort the database to do this?<br><br>Regards,<br>~oxygen<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6688">oxygen</a> — Mon May 01, 2006 12:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-28T09:46:57-04:00</updated>

		<published>2006-04-28T09:46:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62457#p62457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62457#p62457"/>
		<title type="html"><![CDATA[Sort database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62457#p62457"><![CDATA[
Since you have the -decreasing switch, c3 will come before c2 c1 b3...etc (that's because tha ASCII representation of c is greater than b) so if you remove that switch, the order of the letters will become increasing (from a to z) but the numbers will probably come first (also from least to greatest).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Apr 28, 2006 9:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[oxygen]]></name></author>
		<updated>2006-04-28T06:54:32-04:00</updated>

		<published>2006-04-28T06:54:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62450#p62450</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62450#p62450"/>
		<title type="html"><![CDATA[Sort database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62450#p62450"><![CDATA[
Hello all.<br><br>I need some help to sort my database.<br>My database is formatted like this:<br>A1,B1,C1,D1 A2,B2,C2,D2 A3,B3,C3,D3 and so on...<br>Example:<br>345,nick1,23,56 333,nick2,22,3 200,nick3,4,3<br>I sort this with:<div class="codebox"><p>Code: </p><pre><code>set score [lsort -dict -decreasing [split [gets $scorefile]]]</code></pre></div>but I want to sort B1 and B2 and B3 or C1 and C2 and C3 to. <br>How can I sort it that way.<br>Hope I explained it that somebody can understand it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>Tnx,<br>~oxygen<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6688">oxygen</a> — Fri Apr 28, 2006 6:54 am</p><hr />
]]></content>
	</entry>
	</feed>
