Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!85.214.198.2.MISMATCH!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: Wed, 2 Nov 2011 19:02:51 +0000 Organization: Home Lines: 24 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="18148"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3GzT+GG84b9PmpwhmklQJN3FhWSrs89U=" User-Agent: Turnpike/6.05-S () Cancel-Lock: sha1:oyykgEKvsEvuUym1vdGxifzVEZY= Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:7941 In comp.lang.javascript message , Tue, 1 Nov 2011 06:14:04, fulio pen posted: > >Back in 2005, some people in this group helped me to create the >following table for sorting. Why sort a ? Supply the data in JavaScript, as a "two-dimensional array" Arr[[..., ..., ... ], [...], [...], [...], ... [...]] ; At need, sort that. Then remove any existing Table, build the new Table using DOM methods, and insert the new Table. That can give the maintainer the possible advantage that the rows of Arr need not be supplied in any particular order. -- (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. No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.