mozilla

Compare Revisions

Array.prototype.sort()

Change Revisions

Revision 421447:

Revision 421447 by robatron on

Revision 429841:

Revision 429841 by dbruant on

Title:
Array.sort
Array.prototype.sort
Slug:
Web/JavaScript/Reference/Global_Objects/Array/sort
Web/JavaScript/Reference/Global_Objects/Array/sort
Tags:
"Array", "Array methods"
"Array", "Array methods"
Content:

Revision 421447
Revision 429841
n12    </p>n
13    <p>
14      Works across all browsers.
nn282    <p>
283      &nbsp;
284    </p>
285    <h2>
286      Browser compatibility
287    </h2>
288    <p>
289      {{ CompatibilityTable() }}
290    </p>
291    <div id="compat-desktop">
292      <table class="compat-table">
293        <tbody>
294          <tr>
295            <th>
296              Feature
297            </th>
298            <th>
299              Chrome
300            </th>
301            <th>
302              Firefox (Gecko)
303            </th>
304            <th>
305              Internet Explorer
306            </th>
307            <th>
308              Opera
309            </th>
310            <th>
311              Safari
312            </th>
313          </tr>
314          <tr>
315            <td>
316              Basic support
317            </td>
318            <td>
319              {{CompatVersionUnknown()}}
320            </td>
321            <td>
322              {{CompatVersionUnknown()}}
323            </td>
324            <td>
325              {{CompatVersionUnknown()}}
326            </td>
327            <td>
328              {{CompatVersionUnknown()}}
329            </td>
330            <td>
331              {{CompatVersionUnknown()}}
332            </td>
333          </tr>
334        </tbody>
335      </table>
336    </div>
337    <table class="compat-table">
338      <tbody>
339        <tr>
340          <th>
341            Feature
342          </th>
343          <th>
344            Android
345          </th>
346          <th>
347            Chrome for Android
348          </th>
349          <th>
350            Firefox Mobile (Gecko)
351          </th>
352          <th>
353            IE Mobile
354          </th>
355          <th>
356            Opera Mobile
357          </th>
358          <th>
359            Safari Mobile
360          </th>
361        </tr>
362        <tr>
363          <td>
364            Basic support
365          </td>
366          <td>
367            {{CompatVersionUnknown()}}
368          </td>
369          <td>
370            {{CompatVersionUnknown()}}
371          </td>
372          <td>
373            {{CompatVersionUnknown()}}
374          </td>
375          <td>
376            {{CompatVersionUnknown()}}
377          </td>
378          <td>
379            {{CompatVersionUnknown()}}
380          </td>
381          <td>
382            {{CompatVersionUnknown()}}
383          </td>
384        </tr>
385      </tbody>
386    </table>
387    <h2 name="See_also">
388      Specification
389    </h2>
390    <p>
391      ECMAScript since version 1. <a href="http://www.ecma-intern
 >ational.org/ecma-262/5.1/#sec-15.4.4.11" title="http://www.ecma-i
 >nternational.org/ecma-262/5.1/#sec-15.4.4.11">ECMAScript 5</a>
392    </p>
t289      <li>t
290        <a href="/en-US/docs/JavaScript/Reference/Global_Objects/
>Array/join" title="Core_JavaScript/Reference/Global_Objects/Array 
>/join">join</a> 
291      </li>

Back to History