Firefox and Mozilla allow remote attackers to cause a denial of service (application crash from memory consumption), as demonstrated using Javascript code that continuously creates nested arrays and then sorts the newly created arrays.
https://exchange.xforce.ibmcloud.com/vulnerabilities/18282
http://www.securityfocus.com/bid/11760
http://lists.grok.org.uk/pipermail/full-disclosure/2004-November/029491.html
http://lists.grok.org.uk/pipermail/full-disclosure/2004-November/029434.html