> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, October 24, 2005 1:53 PM > To: CF-Talk > Subject: Dynamically Sort HTML Tables > > Howdy, > > I have implemented the sorttable.js script from > http://www.kryogenix.org/code/browser/sorttable/ to dynamically sort a > table of data on the client side. The issue I have with this > implementation is that it doesn't seem to properly sort date columns. > > Is anyone aware of a Javascript script that will sort data in a table and > that properly handles sorting of date columns?
My ordered collection makes building this kind of thing easier: http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_O bCollectionOrdered/Index.cfm#Method_swap The last example shows in-place table sorting. To sort dates you would have to provide a comparison function to do so (a function which takes two values and returns 0 if they're equal, -1 if the first is greater or +1 if the second is greater), but it's easy to implement. Let me know if you have any trouble with it. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222154 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

