<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: jqgrid custom sorting: learning to use onSortCol</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-custom-sorting-learning-to-use-onsortcol</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/jqgrid-custom-sorting-learning-to-use-onsortcol/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>JavascriptNYC on jqgrid custom sorting: learning to use onSortCol</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-custom-sorting-learning-to-use-onsortcol#p29325</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-custom-sorting-learning-to-use-onsortcol#p29325</guid>
        	        	<description><![CDATA[<p><a href="http://stackoverflow.com/questions/18258069/jqgrid-custom-sorting-learning-to-use-onsortcol" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....-onsortcol</a></p>
</p>
<p>I need to be able to do some pretty strange things in terms of sorting, specifically to glue some rows to other rows so that they move together, as a pair. I don&#39;t see documentation on how to write an onSortCol function but it seems like it probably does give me the power that I need.</p>
<p>What I want to be able to do sort the data myself (which I have stored in local data) when the user clicks on a column header. Can I do this? Does anyone have an example I can base my code on?</p>
<p>I&#39;m reading this example here:</p>
<p><a rel="nofollow" href="/blog/phpjqgrid/examples/sorting/custom/default.php" target="_blank"></a><a href="http://www.trirand.com/blog/ph" rel="nofollow" target="_blank">http://www.trirand.com/blog/ph</a>.....efault.php</p>
<p>and I think that this programmer is setting up to tell the server to return the data in a different order and than re-fetching it. Am I right about that? This isn&#39;t what I need to do. I need to do the sorting on the client side. My sort is complex and the data is small.</p>
<p>Anyone got an example?</p>
<p>Thanks!</p></p>
]]></description>
        	        	<pubDate>Fri, 16 Aug 2013 01:59:14 +0300</pubDate>
        </item>
</channel>
</rss>