// Old method
let pinyin = new Intl.Collator(["zh-u-co-pinyin"]);
// New method
let pinyin = new Intl.Collator("zh", { collation: "pinyin" });Firefox 85 release notes for developers / notebook
Firefox 85 release notes for developers
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.