Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Dr J R Stockton Newsgroups: comp.lang.javascript Subject: Re: sorting columns Date: Thu, 3 Nov 2011 21:03:24 +0000 Organization: Home Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain;charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="UwYDIHu13GPq28RciNoAJA"; logging-data="8881"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dCSDxZPM1RdK0267o7AuPRso/wvPo6Q0=" User-Agent: Turnpike/6.05-S () Cancel-Lock: sha1:EK6SKE+MRoPnQjT10LlJc5C9Cz4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:7971 In comp.lang.javascript message , Tue, 1 Nov 2011 06:14:04, fulio pen posted: >I have many rows for the table. To add to my previous in this thread : In that case, it should be faster if you compute for each sortable datum of a column a sort key, attached to the datum, of such a nature that the many comparisons used in sorting reduce to a simple comparison of values, as a result of which the datum-key pair may be swapped as a unit. For example, if sorting European date strings such as 24/7/2012, rearrange into an ISO-8601 form, 20120724 for the key. See . If Elegie has a little time to spare, an E-mail to me could cure that. -- (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME. Web - FAQqish topics, acronyms and links; Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.