<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Sorttable v2: making your tables even more sortable</title>
	<atom:link href="http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable</link>
	<description>scratched tallies on the prison wall</description>
	<pubDate>Tue, 02 Dec 2008 21:01:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122815</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Wed, 05 Nov 2008 23:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122815</guid>
		<description>Jason: I'm afraid not. You'd need to make a custom enhancement to sorttable to do that (or talk to me about rates for custom JavaScript work by dropping me a mail).</description>
		<content:encoded><![CDATA[<p>Jason: I&#8217;m afraid not. You&#8217;d need to make a custom enhancement to sorttable to do that (or talk to me about rates for custom JavaScript work by dropping me a mail).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122811</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 05 Nov 2008 18:24:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122811</guid>
		<description>Is there an equivalent to "sortbottom" that will keep a row at the top?  (e.g. "sorttop")

Thanks.</description>
		<content:encoded><![CDATA[<p>Is there an equivalent to &#8220;sortbottom&#8221; that will keep a row at the top?  (e.g. &#8220;sorttop&#8221;)</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Jilek</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122766</link>
		<dc:creator>Scott Jilek</dc:creator>
		<pubDate>Mon, 27 Oct 2008 16:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122766</guid>
		<description>I&#160;just&#160;wanted&#160;to&#160;submit&#160;my&#160;tweak&#160;to&#160;enable&#160;the&#160;correct&#160;sorting&#160;of&#160;negative&#160;numbers&#160;that&#160;are&#160;denoted&#160;by&#160;enclosing&#160;them&#160;in&#160;parenthesis&#160;like&#160;(10.39)&#160;=&#160;-10.39

What&#160;I&#160;do&#160;is&#160;have&#160;it&#160;replace&#160;the&#160;opening&#160;parenth&#160;with&#160;a&#160;negative&#160;sign&#160;before&#160;stripping&#160;all&#160;other&#160;non-number&#160;chars.&#160;&#160;That&#160;way&#160;it&#160;retains&#160;the&#160;negative&#160;and&#160;sorts&#160;in&#160;true&#160;numeric&#160;rather&#160;than&#160;as&#160;an&#160;absolute&#160;value&#160;when&#160;using&#160;parenths.

&#160;&#160;sort_numeric:&#160;function(a,b)&#160;{
&#160;&#160;&#160;&#160;aa&#160;=&#160;parseFloat(a[0].replace(/\(/g,'-').replace(/[^0-9.-]/g,''));
&#160;&#160;&#160;&#160;if&#160;(isNaN(aa))&#160;aa&#160;=&#160;0;
&#160;&#160;&#160;&#160;bb&#160;=&#160;parseFloat(b[0].replace(/\(/g,'-').replace(/[^0-9.-]/g,''));
&#160;&#160;&#160;&#160;if&#160;(isNaN(bb))&#160;bb&#160;=&#160;0;
&#160;&#160;&#160;&#160;return&#160;aa-bb;
&#160;&#160;}</description>
		<content:encoded><![CDATA[<p>I&nbsp;just&nbsp;wanted&nbsp;to&nbsp;submit&nbsp;my&nbsp;tweak&nbsp;to&nbsp;enable&nbsp;the&nbsp;correct&nbsp;sorting&nbsp;of&nbsp;negative&nbsp;numbers&nbsp;that&nbsp;are&nbsp;denoted&nbsp;by&nbsp;enclosing&nbsp;them&nbsp;in&nbsp;parenthesis&nbsp;like&nbsp;(10.39)&nbsp;=&nbsp;-10.39</p>
<p>What&nbsp;I&nbsp;do&nbsp;is&nbsp;have&nbsp;it&nbsp;replace&nbsp;the&nbsp;opening&nbsp;parenth&nbsp;with&nbsp;a&nbsp;negative&nbsp;sign&nbsp;before&nbsp;stripping&nbsp;all&nbsp;other&nbsp;non-number&nbsp;chars.&nbsp;&nbsp;That&nbsp;way&nbsp;it&nbsp;retains&nbsp;the&nbsp;negative&nbsp;and&nbsp;sorts&nbsp;in&nbsp;true&nbsp;numeric&nbsp;rather&nbsp;than&nbsp;as&nbsp;an&nbsp;absolute&nbsp;value&nbsp;when&nbsp;using&nbsp;parenths.</p>
<p>&nbsp;&nbsp;sort_numeric:&nbsp;function(a,b)&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;aa&nbsp;=&nbsp;parseFloat(a[0].replace(/\(/g,&#8217;-').replace(/[^0-9.-]/g,&#8221;));<br />
&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isNaN(aa))&nbsp;aa&nbsp;=&nbsp;0;<br />
&nbsp;&nbsp;&nbsp;&nbsp;bb&nbsp;=&nbsp;parseFloat(b[0].replace(/\(/g,&#8217;-').replace(/[^0-9.-]/g,&#8221;));<br />
&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isNaN(bb))&nbsp;bb&nbsp;=&nbsp;0;<br />
&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;aa-bb;<br />
&nbsp;&nbsp;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122117</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Mon, 11 Aug 2008 12:36:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122117</guid>
		<description>Hi,&#160;here&#160;is&#160;what&#160;i&#160;am&#160;looking&#160;for&#160;(resend):

*&#160;Embed&#160;script&#160;(One&#160;page&#160;HTML)
*&#160;Sort&#160;detect&#160;IP&#160;addresses

Great&#160;job&#160;-&#160;great&#160;speed&#160;-&#160;rgds.&#160;Henrik&#160;at&#160;Lassen&#160;dot&#160;dk

PS.&#160;Never&#160;understod&#160;the&#160;difference&#160;between&#160;"Submit&#160;comment"&#160;and&#160;"Post&#160;comment"

Solutions&#160;proposed
==================
//Embed&#160;script:&#160;Use&#160;double&#160;qoutes

//Sort&#160;detect&#160;IP&#160;addresses
&#160;&#160;if&#160;(text&#160;!=&#160;"")&#160;{
&#160;&#160;&#160;&#160;if&#160;(text.match(/^(\d{1,3}\.){3}\d{1,3}$/))&#160;&#160;&#160;&#160;&#160;return&#160;sorttable.sort_ip;
&#160;&#160;&#160;&#160;if&#160;(text.match(/^-?[£$¤]?[\d,.]+%?$/&#160;&#160;&#160;&#160;))&#160;&#160;&#160;&#160;&#160;return&#160;sorttable.sort_numeric;
&#160;&#160;...
&#160;&#160;sort_ip:&#160;function(a,b)&#160;{&#160;//&#160;Rgds&#160;HL
&#160;&#160;&#160;&#160;aa&#160;=&#160;a[0].split(".");&#160;aaa&#160;=&#160;0;&#160;for(i&#160;in&#160;aa)&#160;aaa&#160;=&#160;aaa*256+parseInt(aa[i]);
&#160;&#160;&#160;&#160;bb&#160;=&#160;b[0].split(".");&#160;bbb&#160;=&#160;0;&#160;for(i&#160;in&#160;bb)&#160;bbb&#160;=&#160;bbb*256+parseInt(bb[i]);
&#160;&#160;&#160;&#160;return&#160;sorttable.sort_NaN(aaa)&#160;-&#160;sorttable.sort_NaN(bbb);
&#160;&#160;},
&#160;&#160;sort_NaN:&#160;function&#160;(a)&#160;{&#160;
&#160;&#160;&#160;&#160;if&#160;(isNaN(a))&#160;return&#160;-Number.MAX_VALUE;&#160;return&#160;a;
&#160;&#160;},</description>
		<content:encoded><![CDATA[<p>Hi,&nbsp;here&nbsp;is&nbsp;what&nbsp;i&nbsp;am&nbsp;looking&nbsp;for&nbsp;(resend):</p>
<p>*&nbsp;Embed&nbsp;script&nbsp;(One&nbsp;page&nbsp;HTML)<br />
*&nbsp;Sort&nbsp;detect&nbsp;IP&nbsp;addresses</p>
<p>Great&nbsp;job&nbsp;-&nbsp;great&nbsp;speed&nbsp;-&nbsp;rgds.&nbsp;Henrik&nbsp;at&nbsp;Lassen&nbsp;dot&nbsp;dk</p>
<p>PS.&nbsp;Never&nbsp;understod&nbsp;the&nbsp;difference&nbsp;between&nbsp;&#8221;Submit&nbsp;comment&#8221;&nbsp;and&nbsp;&#8221;Post&nbsp;comment&#8221;</p>
<p>Solutions&nbsp;proposed<br />
==================<br />
//Embed&nbsp;script:&nbsp;Use&nbsp;double&nbsp;qoutes</p>
<p>//Sort&nbsp;detect&nbsp;IP&nbsp;addresses<br />
&nbsp;&nbsp;if&nbsp;(text&nbsp;!=&nbsp;&#8221;")&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(text.match(/^(\d{1,3}\.){3}\d{1,3}$/))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;sorttable.sort_ip;<br />
&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(text.match(/^-?[£$¤]?[\d,.]+%?$/&nbsp;&nbsp;&nbsp;&nbsp;))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;sorttable.sort_numeric;<br />
&nbsp;&nbsp;&#8230;<br />
&nbsp;&nbsp;sort_ip:&nbsp;function(a,b)&nbsp;{&nbsp;//&nbsp;Rgds&nbsp;HL<br />
&nbsp;&nbsp;&nbsp;&nbsp;aa&nbsp;=&nbsp;a[0].split(&#8221;.&#8221;);&nbsp;aaa&nbsp;=&nbsp;0;&nbsp;for(i&nbsp;in&nbsp;aa)&nbsp;aaa&nbsp;=&nbsp;aaa*256+parseInt(aa[i]);<br />
&nbsp;&nbsp;&nbsp;&nbsp;bb&nbsp;=&nbsp;b[0].split(&#8221;.&#8221;);&nbsp;bbb&nbsp;=&nbsp;0;&nbsp;for(i&nbsp;in&nbsp;bb)&nbsp;bbb&nbsp;=&nbsp;bbb*256+parseInt(bb[i]);<br />
&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;sorttable.sort_NaN(aaa)&nbsp;-&nbsp;sorttable.sort_NaN(bbb);<br />
&nbsp;&nbsp;},<br />
&nbsp;&nbsp;sort_NaN:&nbsp;function&nbsp;(a)&nbsp;{&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isNaN(a))&nbsp;return&nbsp;-Number.MAX_VALUE;&nbsp;return&nbsp;a;<br />
&nbsp;&nbsp;},</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122116</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Mon, 11 Aug 2008 12:32:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-122116</guid>
		<description>Hi,&#160;more&#160;stuff:

&#60;pre&#62;
*&#160;Sort&#160;detect&#160;empty&#160;as&#160;lowest&#160;"value"
&#60;/pre&#62;

Great&#160;job&#160;-&#160;rgds.&#160;Henrik&#160;at&#160;Lassen&#160;dot&#160;dk

Solutions&#160;proposed
==================
&#60;pre&#62;
//*&#160;Sort&#160;detect&#160;empty&#160;as&#160;lowest&#160;"value"

&#160;&#160;sort_numeric:&#160;function(a,b)&#160;{
&#160;&#160;&#160;&#160;aa&#160;=&#160;parseFloat(a[0].replace(/[^0-9.-]/g,""));
&#160;&#160;&#160;&#160;bb&#160;=&#160;parseFloat(b[0].replace(/[^0-9.-]/g,""));&#160;
&#160;&#160;&#160;&#160;return&#160;sorttable.sort_NaN(aa)&#160;-&#160;sorttable.sort_NaN(bb);
&#160;&#160;},
&#60;/pre&#62;
</description>
		<content:encoded><![CDATA[<p>Hi,&nbsp;more&nbsp;stuff:</p>
<p>&lt;pre&gt;<br />
*&nbsp;Sort&nbsp;detect&nbsp;empty&nbsp;as&nbsp;lowest&nbsp;&#8221;value&#8221;<br />
&lt;/pre&gt;</p>
<p>Great&nbsp;job&nbsp;-&nbsp;rgds.&nbsp;Henrik&nbsp;at&nbsp;Lassen&nbsp;dot&nbsp;dk</p>
<p>Solutions&nbsp;proposed<br />
==================<br />
&lt;pre&gt;<br />
//*&nbsp;Sort&nbsp;detect&nbsp;empty&nbsp;as&nbsp;lowest&nbsp;&#8221;value&#8221;</p>
<p>&nbsp;&nbsp;sort_numeric:&nbsp;function(a,b)&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;aa&nbsp;=&nbsp;parseFloat(a[0].replace(/[^0-9.-]/g,&#8221;"));<br />
&nbsp;&nbsp;&nbsp;&nbsp;bb&nbsp;=&nbsp;parseFloat(b[0].replace(/[^0-9.-]/g,&#8221;"));&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;sorttable.sort_NaN(aa)&nbsp;-&nbsp;sorttable.sort_NaN(bb);<br />
&nbsp;&nbsp;},<br />
&lt;/pre&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121982</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Thu, 31 Jul 2008 10:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121982</guid>
		<description>Stephanie: I'm not sure what you mean by "visible" rows? Sorttable doesn't make rows visible or invisible.</description>
		<content:encoded><![CDATA[<p>Stephanie: I&#8217;m not sure what you mean by &#8220;visible&#8221; rows? Sorttable doesn&#8217;t make rows visible or invisible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephanie</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121893</link>
		<dc:creator>Stephanie</dc:creator>
		<pubDate>Fri, 25 Jul 2008 21:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121893</guid>
		<description>I love this script, however, I have a checkbox that allows one to select certain records for processing via a post of the form information.


I am trying to add an option to select or unselect all but I would like the select or unselect to select or unselect only visible rows, not all rows.


Is there any easy way to do this that anyone knows of?
</description>
		<content:encoded><![CDATA[<p>I love this script, however, I have a checkbox that allows one to select certain records for processing via a post of the form information.</p>
<p>I am trying to add an option to select or unselect all but I would like the select or unselect to select or unselect only visible rows, not all rows.</p>
<p>Is there any easy way to do this that anyone knows of?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandy</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121458</link>
		<dc:creator>Sandy</dc:creator>
		<pubDate>Thu, 03 Jul 2008 14:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121458</guid>
		<description>whatever</description>
		<content:encoded><![CDATA[<p>whatever</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Table Sorta Guy</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121384</link>
		<dc:creator>Table Sorta Guy</dc:creator>
		<pubDate>Sun, 29 Jun 2008 16:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121384</guid>
		<description>Awesome! Thank you !!!</description>
		<content:encoded><![CDATA[<p>Awesome! Thank you !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121377</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Sat, 28 Jun 2008 23:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/2007/04/07/sorttable-v2-making-your-tables-even-more-sortable#comment-121377</guid>
		<description>Table Sorta Guy: add a custom sort key of 1 or 0 to the cells in question. See http://kryogenix.org/code/browser/sorttable/#customkeys for details.</description>
		<content:encoded><![CDATA[<p>Table Sorta Guy: add a custom sort key of 1 or 0 to the cells in question. See <a href="http://kryogenix.org/code/browser/sorttable/#customkeys" rel="nofollow">http://kryogenix.org/code/browser/sorttable/#customkeys</a> for details.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
