Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Bubblesort Date: Sat, 05 Mar 2016 02:00:08 +0100 Organization: PointedEars Software (PES) Lines: 40 Message-ID: <2748767.P17yqlqXuk@PointedEars.de> References: <0d68ee6d-8a80-439e-ae04-17743584e2e4@googlegroups.com> <086a7397-459b-46e3-b83c-cfc7edf4188a@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1457139726 2662 eJwFwQcBADAIAzBNA8qRw/UvYQlYn7aJQgWHk65pzm3e6I2zZ5WwkUHSXriXs9gsSSg5PkFLEa4= (5 Mar 2016 01:02:06 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 5 Mar 2016 01:02:06 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwYEBwCAIA7CXYNAi52iV/09YgqBTlQQTg5FwQMZp2ufpr2xPR1TvmqtZX0qTyX67DH1Tix1lcvQO+wFHORTk Cancel-Lock: sha1:3i0leL2WVhcoEjsPpEOd2Rj9mQ0= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXyqAdnqOO/n/CEqZC9y1RRdOJ1LP2VM3Z9ABdChagI6VxbY+IjtTq7wcKvhBx Xref: csiph.com comp.lang.javascript:29821 Mr. Man-wai Chang wrote: ^^^^^^^^^^^^^^^^^ Please post here using your real name. If Man-wai Chang is your real name, you should omit the “Mr.” > On 3/4/2016 9:15 PM, jonas.thornvall@gmail.com wrote: >> I thought this would sort the property "subarray" nodelinks. >> arr[0].nodelinks.sort(); >> But after sort it write out same content as before sort. >> 1,10,11,12,13,14,15,16,17,2,3,4,5,6,7,8,9 >> My object something like this. >> arr[k] ={nodelinks : []}; > > I don't know what you are trying to write or build. I seldom heard > people doing elaborate mathematics with Javascript, There is no Javascript, see the ECMAScript Support Matrix (signature below) for details. > which is used mainly for displaying web-pages. As there is no Javascript, it is not used. ECMAScript implementations, e.g. the programming languages that are have “JavaScript” in their name, are multi-purpose programming languages. In Web browsers, they are not “mainly used for displaying "web pages"”, but to make Web documents like HTML documents more dynamic and interactive, by use of implementations of APIs *with* them, for example the DOM. But consider, for example, environments like Node.js. > Are you abusing if not misusing a tool here? No. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.