diff --git a/public/lib/polyfill.js b/public/lib/polyfill.js index b46d73906..cef73b4e5 100644 --- a/public/lib/polyfill.js +++ b/public/lib/polyfill.js @@ -11,3 +11,9 @@ if (!Array.prototype.findLastIndex) { return -1; }; } + +if (!Array.prototype.toSorted) { + Array.prototype.toSorted = function (compareFunction) { + return this.slice().sort(compareFunction); + }; +}