Path: csiph.com!weretis.net!feeder4.news.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 00:01:49 +0100 Organization: PointedEars Software (PES) Lines: 19 Message-ID: <4074840.aKEXckadi7@PointedEars.de> References: <0d68ee6d-8a80-439e-ae04-17743584e2e4@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1457132510 7463 eJwFwYEBgDAIA7CXqKwFzgEn/59gQhf0xhF1uFxgPG8gp+lWn0eIaUPUrSJ9a63ZTdnFwx8ByhAX (4 Mar 2016 23:01:50 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 4 Mar 2016 23:01:50 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQcBwEAIBDBL9NhyeIZ/CU2U7bN2MTXR05MEYXc2vmfA8VT6K1D2hFDStdVGcBaJC9z6ZvlB28GhP1GOFTo= Cancel-Lock: sha1:gOaAhab/PvhNbnQpprx34RxvoCQ= X-NNTP-Posting-Host: eJwFwYkRwDAIA7CVQjCPx+kRvP8IlcLTcgoZiVDo3Q7iwDfklj5c45WmwWZKALlVrsXn5/0IZhCe Xref: csiph.com comp.lang.javascript:29819 Mr. Man-wai Chang wrote: > On 3/4/2016 6:00 PM, jonas.thornvall@gmail.com wrote: >> I was thinking sorting links for each node, using a simple bubblesort, it >> is not that many links on each node usually. A link can't be equal to >> another so no "=" needed. arr[i] contain the nodes and nodelinks[] is an >> array of links 1,4,2,3,0 for example. >> >> Does it seem in principal right? > > Does Javascript have a function to sort arrays? No, but JavaScript and other implementations of ECMAScript do. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.