Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!uucp.gnuu.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1437763.yZijEUq800@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 04 Mar 2014 15:56:40 +0100 User-Agent: KNode/4.11.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <6ecd1d1a-8bd0-4c4f-8f38-c5d6ff8e012a@googlegroups.com> <2779103.sO63zRiCyQ@PointedEars.de> MIME-Version: 1.0 Lines: 45 NNTP-Posting-Date: 04 Mar 2014 15:56:41 CET NNTP-Posting-Host: 086d34d2.newsspool2.arcor-online.net X-Trace: DXC=LfU];VUR[>M0YVY]kmLTlDA9EHlD;3YcB4Fo<]lROoRA8kF Thomas 'PointedEars' Lahn wrote: >> Michael Haufe (TNO) wrote: >> > One approach is to create a second tbody in the table and then >> > copy/move the old rows from the bottom up into the new tbody and then >> > remove the old tbody when complete. >> > >> > >> > >> > Evertjan is correct though that it would be wiser to populate a >> > different data structure and then reverse it there before populating >> > the table. >> >> That would require >> >> 1a. Creating a native object. >> 2a. Copying the table (body) data to that object. >> 3a. Reversing the order of the data in the object. >> 3b. nothing >> 4a. Copying the data from the object to the DOM object. >> 4b. Copying the data from the object to the DOM object >> in reverse order. >> >> By contrast, you could just >> >> 1c. Reverse the order of the nodes in the document tree in place. >> >> Why is the former wiser? > > It isn't, nor did I suggest it. You agreed with that assessment. > I think you've misinterpreted what was written. If not the former four steps, what, then, do you understand to mean “populate a different data structure and reverse it there before populating the table”? -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.