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


Groups > comp.lang.javascript > #8027

Re: sorting columns

From Dr J R Stockton <reply1144@merlyn.demon.co.uk>
Newsgroups comp.lang.javascript
Subject Re: sorting columns
Date 2011-11-04 21:12 +0000
Organization Home
Message-ID <1VvyMpIxUFtOFw8r@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <f7fca7c8-769a-4339-ae49-bda395338ef3@l12g2000vby.googlegroups.com> <mqUGzLEbPZsOFwUD@invalid.uk.co.demon.merlyn.invalid> <j8uonk$v6j$1@news.albasani.net> <8931625.SEqChMirdb@PointedEars.de>

Show all headers | View raw


In comp.lang.javascript message <8931625.SEqChMirdb@PointedEars.de>,
Thu, 3 Nov 2011 20:41:25, Thomas 'PointedEars' Lahn <PointedEars@web.de>
posted:

>Andreas Bergmaier wrote:
>
>> Dr J R Stockton schrieb:
>>> Why sort a<table>?
>> Why not?
>
>Because that is comparably inefficient.
                comparatively ?
>
>>> 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.
>>
>> What do you mean with two-dimensional array?
>
>There are no multi-dimensional arrays in ECMAScript implementations, only
>arrays, represented by Array instances, that can contain references to other
>Array instances as elements.

Those adept in reading English will have considered the difference in
meaning between 'a "two-dimensional array"' and 'a two-dimensional
array'.


To address one of Elegie's points : to accommodate those without
scripting, the data can be pre-loaded into an HTML table.  Those with
script can then copy that initial data into whatever form, such as Arr
above, is thought best for sorting etc.

-- 
 (c) John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v6.05   MIME.
   Web  <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.

          ECMA 5 lacks support for the speedy Quantum Bogosort.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next 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