About Leader Board in Javascript (Array) Help Me Please
<p>I need help with a score table for my game.</p>

<p><strong>-1-</strong>    I have 4 variables:</p>

<pre><code>var Player1Score= 44;
var Player2Score= 12;
var Player3Score= 45;
var Player4Score= 26;
</code></pre>

<p><strong>--2--</strong>     i make a Array:</p>

<pre><code>var MyArray=[Player1Score,Player2Score,Player3Score,Player4Score];
</code></pre>

<p><strong>--3--</strong>        sort the array:</p>

<pre><code>MyArray.Sort();
</code></pre>

<p><strong>--4--</strong>        Print:</p>

<p>----------HIGHSCORES----------</p>

<pre><code>                45

                44

                26

                12
</code></pre>

<p>MY QUESTION IS: <strong>HOW I CAN PRINT THE NAME OF THE PLAYERS IN ORDER¿?</strong></p>

<p>LIKE THIS:</p>

<p>----------HIGHSCORES----------</p>

<pre><code>PLAYER 3              45

PLAYER 1              44

PLAYER 4              26

PLAYER 2              12
</code></pre>

<p>THANKS IN ADVANCE. GREETINGS</p>
