Apple,Banana,Mango,Ananas and Kiwi - Can I reorder the order?
<p>sort() orders the elemts alphabetically:
<pre><code>var fruits = new Array(&quot;Apple&quot;, &quot;Banana&quot;,&quot;Kiwi&quot;,  &quot;Ananas&quot;, &quot;Mango&quot;);
Namen.sort();
document.write(fruits);
</pre></p>

<p>Well, I don't want the alphabetical order...it should be like</p>

<p><pre>var reorderFruits = new Array(&quot;Kiwi&quot;, &quot;Apple&quot;,&quot;Mango&quot;,  &quot;Banana&quot;, &quot;Ananas&quot;);</pre></p>

<p>Is it possible to reorder the order the way I imagined it? How?</p>

<p>Thank you in advance.
Faili</p>

<p>Edit:
<pre>
&lt;input type=&quot;checkbox&quot; id=&quot;apple&quot; checked=&quot;checked&quot; /&gt;
&lt;label for=&quot;apple&quot;&gt;Apple&lt;/label&gt;
 &lt;input type=&quot;checkbox&quot; id=&quot;Banana&quot; checked=&quot;checked&quot; /&gt;
 &lt;label for=&quot;Banana&quot;&gt;Banana&lt;/label&gt;
 &lt;input type=&quot;checkbox&quot; id=&quot;Kiwi&quot; /&gt;
 &lt;label for=&quot;Kiwi&quot;&gt;Kiwi&lt;/label&gt;
 &lt;input type=&quot;checkbox&quot; id=&quot;Mango&quot; checked=&quot;checked&quot;/&gt;
 &lt;label for=&quot;Mango&quot;&gt;Mango&lt;/label&gt;</pre></code></p>

<p>Well...I get the information from a website I have no access to. No I want to reorder the order. 
In this example it is:
Apple->Banana->Kiwi->Mango.</p>

<p>Now I'm asking whether it is possible to make it to:
Kiwi->Banana->mango->Apple</p>

<p>Please ask whether there is sth unclear.</p>

<p>Thank you so much.</p>
