Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #7971

Re: sorting columns

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 <reply1144@merlyn.demon.co.uk>
Newsgroups comp.lang.javascript
Subject Re: sorting columns
Date Thu, 3 Nov 2011 21:03:24 +0000
Organization Home
Lines 26
Message-ID <LzFdlbGcGwsOFwgu@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <f7fca7c8-769a-4339-ae49-bda395338ef3@l12g2000vby.googlegroups.com>
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 (<ho4ExRQAcssdBA9uS+0bCn8lMF>)
Cancel-Lock sha1:EK6SKE+MRoPnQjT10LlJc5C9Cz4=
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:7971

Show key headers only | View raw


In comp.lang.javascript message <f7fca7c8-769a-4339-ae49-bda395338ef3@l1
2g2000vby.googlegroups.com>, Tue, 1 Nov 2011 06:14:04, fulio pen
<fuliopen@yahoo.com> 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 <http://www.merlyn.demon.co.uk/js-order.htm>.


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  <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms and links;
  Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

sorting columns fulio pen <fuliopen@yahoo.com> - 2011-11-01 06:14 -0700
  Re: sorting columns Elegie <elegie@anonymous.invalid> - 2011-11-01 20:18 +0100
    Re: sorting columns fulio pen <fuliopen@yahoo.com> - 2011-11-02 05:07 -0700
      Re: sorting columns Elegie <elegie@anonymous.invalid> - 2011-11-02 13:46 +0100
        Re: sorting columns fulio pen <fuliopen@yahoo.com> - 2011-11-02 07:39 -0700
          Re: sorting columns Elegie <elegie@anonymous.invalid> - 2011-11-02 16:00 +0100
            Re: sorting columns fulio pen <fuliopen@yahoo.com> - 2011-11-02 11:06 -0700
  Re: sorting columns Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-02 19:02 +0000
    Re: sorting columns Elegie <elegie@anonymous.invalid> - 2011-11-03 02:27 +0100
    Re: sorting columns Andreas Bergmaier <andber93@web.de> - 2011-11-03 20:06 +0100
      Re: sorting columns Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-03 20:41 +0100
        Re: sorting columns Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-04 21:12 +0000
      Re: sorting columns Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-04 21:00 +0000
  Re: sorting columns Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-03 21:03 +0000

csiph-web