{"json_modified": "2019-01-16T21:07:40.326880", "uuid": "34a1d6d7-46a3-400f-8e08-02e17bba0658", "title": "Array.prototype.sort()", "url": "/it/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": ["JavaScript", "Array", "Prototype", "Metodi"], "translations": [{"uuid": "87f0c23b-0d1a-411f-9b12-6ff2e300f316", "title": "Array.prototype.sort()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": ["Array", "Method", "Prototype", "JavaScript", "Sorting"], "summary": "The <code><strong>sort()</strong></code> method sorts the elements of an array <em><a href=\"https://en.wikipedia.org/wiki/In-place_algorithm\">in place</a></em> and returns the array. The default sort order is built upon converting the elements into strings, then comparing their sequences of UTF-16 code units values.", "localization_tags": [], "locale": "en-US", "last_edit": "2018-12-22T00:56:19.379933", "review_tags": ["editorial"]}, {"uuid": "7077f4c2-a249-4a5a-82f2-15cbf3d5472e", "title": "Array.prototype.sort()", "url": "/de/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": ["JavaScript", "Array", "Prototype", "Method"], "summary": "Die <code><strong>sort()</strong></code> Methode sortiert die Elemente eines Arrays <a href=\"https://de.wikipedia.org/wiki/In-place\">in-place</a> und gibt das Array zur\u00fcck. Die Sortierung ist nicht immer <a href=\"https://de.wikipedia.org/wiki/Stabilit%C3%A4t_%28Sortierverfahren%29\">stabil</a>. Die Standardsortierreihenfolge folgt den Unicode Codepoints.", "localization_tags": [], "locale": "de", "last_edit": "2018-05-24T00:13:28.762361", "review_tags": []}, {"uuid": "4e3481c9-8aef-4185-a0f9-d31a394f2862", "title": "Array.prototype.sort()", "url": "/es/docs/Web/JavaScript/Referencia/Objetos_globales/Array/sort", "tags": ["Array", "Prototipo", "M\u00e9todo(2)", "JavaScript"], "summary": "El m\u00e9todo <code><strong>sort()</strong></code> ordena los elementos de un array <em>localmente</em> y devuelve\u00a0el\u00a0array. La ordenaci\u00f3n\u00a0no es necesariamente <a href=\"https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\">estable</a>. El modo de ordenaci\u00f3n\u00a0por defecto responde\u00a0a la posici\u00f3n del valor del string\u00a0de acuerdo a su\u00a0valor\u00a0<a href=\"https://es.wikipedia.org/wiki/Unicode\">Unicode</a>.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2019-01-15T10:45:53.089019", "review_tags": ["editorial"]}, {"uuid": "710d9d8c-22b0-4b9d-bd16-8e0bf782206c", "title": "Array.prototype.sort()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Array/sort", "tags": ["Array", "M\u00e9thode", "Prototype", "JavaScript", "Reference"], "summary": "La m\u00e9thode <strong><code>sort()</code></strong> trie les \u00e9l\u00e9ments d'un tableau, dans ce m\u00eame tableau, et renvoie le tableau. Par d\u00e9faut, le tri s'effectue sur les \u00e9l\u00e9ments du tableau convertis en cha\u00eenes de caract\u00e8res et tri\u00e9es selon les valeurs des unit\u00e9s de code UTF-16 des caract\u00e8res.", "localization_tags": [], "locale": "fr", "last_edit": "2018-12-24T00:20:35.096186", "review_tags": []}, {"uuid": "effb4e75-2218-4b98-a213-8f6d580d3a3f", "title": "Array.prototype.sort()", "url": "/hu/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": [], "summary": "A\u00a0<code><strong>sort()</strong></code>\u00a0elj\u00e1r\u00e1s\u00a0\u00a0egy t\u00f6mb elemeit rendezi\u00a0<em>helyben, \u00e9s visszaadja a t\u00f6mb\u00f6t.</em>\u00a0Egy rendez\u00e9s nem teljesen <a href=\"https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\">stabil</a>. Az alap\u00e9rtelmezett rendez\u00e9si sorrend\u00a0f\u00fcgg a sztring Unicode t\u00e1bl\u00e1ban val\u00f3 elhelyezked\u00e9s\u00e9t\u0151l.", "localization_tags": ["inprogress"], "locale": "hu", "last_edit": "2018-03-23T04:13:09.905617", "review_tags": []}, {"uuid": "c5b46f90-1256-4e54-aa0a-0d8f620283bf", "title": "Array.prototype.sort()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": ["Array"], "summary": "\u914d\u5217\u306e\u8981\u7d20\u3092<em><a href=\"https://ja.wikipedia.org/wiki/In-place%E3%82%A2%E3%83%AB%E3%82%B4%E3%83%AA%E3%82%BA%E3%83%A0\">in place</a>\u3067</em>\u30bd\u30fc\u30c8\u3057\u307e\u3059\u3002\u3053\u306e\u30bd\u30fc\u30c8\u306f <a href=\"https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\">stable</a> \u3067\u306f\u3042\u308a\u307e\u305b\u3093(\u8a33\u6ce8:\u540c\u3058\u5e8f\u5217\u3092\u6301\u3064\u5024\u306e\u9806\u756a\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u305b\u3093)\u3002 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fUnicode\u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30c8\u306e\u6607\u9806\u306b\u30bd\u30fc\u30c8\u3055\u308c\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2018-06-08T04:17:13.460435", "review_tags": []}, {"uuid": "7b5b0488-9006-4f4a-95be-34869370f935", "title": "Array.prototype.sort()", "url": "/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": ["JavaScript", "Array", "Prototype", "Method"], "summary": "<code><strong>sort()</strong></code> \uba54\uc11c\ub4dc\ub294 \ubc30\uc5f4\uc758 \uc694\uc18c\ub97c \uc801\uc808\ud55c \uc704\uce58\uc5d0 \uc815\ub82c\ud55c \ud6c4 \uadf8 \ubc30\uc5f4\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4. \uc815\ub82c\uc740 <a href=\"https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\">stable sort</a>\uac00 \uc544\ub2d0 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0\uae30\ubcf8 \uc815\ub82c \uc21c\uc11c\ub294 \ubb38\uc790\uc5f4\uc758\u00a0\uc720\ub2c8\ucf54\ub4dc \ucf54\ub4dc \ud3ec\uc778\ud2b8\ub97c \ub530\ub985\ub2c8\ub2e4.", "localization_tags": ["inprogress"], "locale": "ko", "last_edit": "2018-09-15T09:18:41.910445", "review_tags": []}, {"uuid": "bf8d28ea-1a1e-4063-8e7f-b4369e23f4f9", "title": "Array.prototype.sort()", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Array/sort", "tags": ["Dokumentacja_JavaScript", "JavaScript", "Dokumentacje", "Strony_wymagaj\u0105ce_dopracowania", "Wszystkie_kategorie"], "summary": "Sortuje elementy tablicy.", "localization_tags": [], "locale": "pl", "last_edit": "2017-12-03T05:41:52.386018", "review_tags": []}, {"uuid": "21bf075a-1c0d-4f71-9dbe-ca99b0337a41", "title": "Array.prototype.sort()", "url": "/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": [], "summary": "O m\u00e9todo <code><strong>sort()</strong></code> ordena os elementos do pr\u00f3prio array e retorna o array. A ordena\u00e7\u00e3o n\u00e3o \u00e9 necessariamente <a href=\"https://pt.wikipedia.org/wiki/Ordena%C3%A7%C3%A3o_est%C3%A1vel\">est\u00e1vel</a>. A ordena\u00e7\u00e3o padr\u00e3o \u00e9 de acordo com a\u00a0 pontua\u00e7\u00e3o de c\u00f3digo unicode.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2018-12-19T15:50:46.303395", "review_tags": ["editorial"]}, {"uuid": "4703471c-ae91-4da1-b7e3-fccb8bc2154e", "title": "Array.prototype.sort()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": ["Array", "Prototype", "Method", "JavaScript"], "summary": "\u041c\u0435\u0442\u043e\u0434 <code><strong>sort()</strong></code> <em>\u043d\u0430 \u043c\u0435\u0441\u0442\u0435</em> \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432. \u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e <a href=\"https://ru.wikipedia.org/wiki/%D0%A3%D1%81%D1%82%D0%BE%D0%B9%D1%87%D0%B8%D0%B2%D0%B0%D1%8F_%D1%81%D0%BE%D1%80%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D0%B0\">\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0430</a> (<a href=\"https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\">\u0430\u043d\u0433\u043b.</a>). \u041f\u043e\u0440\u044f\u0434\u043e\u043a c\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u043a\u043e\u0434\u043e\u0432\u044b\u0445 \u0442\u043e\u0447\u0435\u043a Unicode.", "localization_tags": [], "locale": "ru", "last_edit": "2018-08-21T17:28:40.251550", "review_tags": []}, {"uuid": "771e06f2-b201-4573-bd40-776451f0c686", "title": "Array.prototype.sort()", "url": "/vi/docs/Web/JavaScript/Reference/Global_Objects/Array/S%E1%BA%AFp_x%E1%BA%BFp", "tags": [], "summary": "Ph\u01b0\u01a1ng th\u1ee9c <code><strong>sort()</strong></code> s\u1ebd s\u1eafp x\u1ebfp c\u00e1c ph\u1ea7n t\u1eed c\u1ee7a m\u1ea3ng ngay t\u1ea1i ch\u1ed7 (<em><a href=\"https://en.wikipedia.org/wiki/In-place_algorithm\">in place</a></em>) v\u00e0 tr\u1ea3 v\u1ec1 m\u1ea3ng \u0111\u00f3. K\u1ebft qu\u1ea3 s\u1eafp x\u1ebfp c\u00f3 th\u1ec3 kh\u00f4ng <a href=\"https://vi.wikipedia.org/wiki/Thu%E1%BA%ADt_to%C3%A1n_s%E1%BA%AFp_x%E1%BA%BFp#S%E1%BA%AFp_x%E1%BA%BFp_%E1%BB%95n_%C4%91%E1%BB%8Bnh\">\u1ed5n \u0111\u1ecbnh</a> (<a href=\"https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\">stable</a>). C\u00e1ch s\u1eafp x\u1ebfp m\u1eb7c \u0111\u1ecbnh l\u00e0 theo Unicode code point c\u1ee7a chu\u1ed7i.", "localization_tags": [], "locale": "vi", "last_edit": "2018-08-27T09:47:46.499984", "review_tags": ["editorial"]}, {"uuid": "6a65ad13-9b8e-4a29-9227-08315c64a99e", "title": "Array.prototype.sort()", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": ["Array", "Prototype", "JavaScript"], "summary": "<code><strong>sort()</strong></code> \u65b9\u6cd5\u7528<a href=\"https://en.wikipedia.org/wiki/In-place_algorithm\">\u539f\u5730\u7b97\u6cd5</a>\u5bf9\u6570\u7ec4\u7684\u5143\u7d20\u8fdb\u884c\u6392\u5e8f\uff0c\u5e76\u8fd4\u56de\u6570\u7ec4\u3002\u6392\u5e8f\u7b97\u6cd5\u73b0\u5728\u662f<a href=\"https://zh.wikipedia.org/wiki/%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95#.E7.A9.A9.E5.AE.9A.E6.80.A7\">\u7a33\u5b9a\u7684</a>\u3002\u9ed8\u8ba4\u6392\u5e8f\u987a\u5e8f\u662f\u6839\u636e\u5b57\u7b26\u4e32Unicode\u7801\u70b9\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2018-11-14T18:12:42.384894", "review_tags": []}, {"uuid": "0d4fd849-8fdf-4263-b18d-6d019ef954a3", "title": "Array.prototype.sort()", "url": "/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", "tags": ["JavaScript", "Array", "Prototype", "Method"], "summary": "<code><strong>sort()</strong></code> \u65b9\u6cd5\u6703<em><a href=\"https://zh.wikipedia.org/wiki/%E5%8E%9F%E5%9C%B0%E7%AE%97%E6%B3%95\">\u539f\u5730\uff08in place\uff09</a></em>\u5c0d\u4e00\u500b\u9663\u5217\u7684\u6240\u6709\u5143\u7d20\u9032\u884c\u6392\u5e8f\uff0c\u4e26\u56de\u50b3\u6b64\u9663\u5217\u3002\u6392\u5e8f\u4e0d\u4e00\u5b9a\u662f<a href=\"https://zh.wikipedia.org/wiki/%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95#%E7%A9%A9%E5%AE%9A%E6%80%A7\">\u7a69\u5b9a\u7684\uff08stable\uff09</a>\u3002\u9810\u8a2d\u7684\u6392\u5e8f\u9806\u5e8f\u662f\u6839\u64da\u5b57\u4e32\u7684 Unicode \u7de8\u78bc\u4f4d\u7f6e\uff08code points\uff09\u800c\u5b9a\u3002", "localization_tags": [], "locale": "zh-TW", "last_edit": "2018-02-21T18:40:51.952095", "review_tags": []}], "modified": "2019-01-16T21:07:29.388633", "label": "Array.prototype.sort()", "localization_tags": [], "locale": "it", "id": 223639, "last_edit": "2018-09-14T09:22:13.527314", "summary": "Il metodo\u00a0<code><strong>sort()</strong></code>\u00a0ordina gli elementi di un array <em><a href=\"https://en.wikipedia.org/wiki/In-place_algorithm\">in place</a></em> e ritorna l'array. L'ordinamento non \u00e8 necessariamente\u00a0<a href=\"https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\">stable</a>. L'ordinamento predefinito \u00e8 in base ai punti di codice Unicode della stringa.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Sintassi", "title": "Sintassi"}, {"id": "Parametri", "title": "Parametri"}, {"id": "Valore_ritornato", "title": "Valore ritornato"}, {"id": "Descrizione", "title": "Descrizione"}, {"id": "Esempi", "title": "Esempi"}, {"id": "Creare_visualizzare_ed_ordinare_un_array", "title": "Creare, visualizzare, ed ordinare un array"}, {"id": "Ordinare_caratteri_non-ASCII", "title": "Ordinare caratteri non-ASCII\u00a0"}, {"id": "Ordinare_con_map", "title": "Ordinare con map"}, {"id": "Specifiche", "title": "Specifiche"}, {"id": "Compatibilit\u00e0_con_il_browser", "title": "Compatibilit\u00e0 con il browser"}, {"id": "sect1", "title": null}, {"id": "Legend", "title": "Legend"}, {"id": "Vedi_anche", "title": "Vedi anche"}], "slug": "Web/JavaScript/Reference/Global_Objects/Array/sort", "review_tags": ["editorial"]}