Get to know MDN better
Esta página foi traduzida do inglês pela comunidade. Saiba mais e junte-se à comunidade MDN Web Docs.
A exceção JavaScript "invalid Array.prototype.sort argument" ocorre quando o argumento de Array.prototype.sort() não é undefined ou uma função que compara os seus operandos.
Espera-se que o argumento de Array.prototype.sort() seja undefined ou uma função que compare os seus operandos.
This page was last modified on 10 de jan. de 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.