Merge branch 'develop' into share-room

This commit is contained in:
Aaron Raimist 2021-06-04 01:08:09 -05:00
commit c99c42f341
107 changed files with 4755 additions and 1549 deletions

View file

@ -73,3 +73,14 @@ export function copyNode(ref: Element): boolean {
selectText(ref);
return document.execCommand('copy');
}
const collator = new Intl.Collator();
/**
* Performant language-sensitive string comparison
* @param a the first string to compare
* @param b the second string to compare
*/
export function compare(a: string, b: string): number {
return collator.compare(a, b);
}