Sort tags in trigger (#9921)

This commit is contained in:
Paulus Schoutsen
2021-08-31 21:30:35 -07:00
committed by GitHub
parent 708b8787c5
commit ac64d293e7
30 changed files with 76 additions and 65 deletions

View File

@@ -1,4 +1,4 @@
export const compare = (a: string, b: string) => {
export const stringCompare = (a: string, b: string) => {
if (a < b) {
return -1;
}
@@ -9,5 +9,5 @@ export const compare = (a: string, b: string) => {
return 0;
};
export const caseInsensitiveCompare = (a: string, b: string) =>
compare(a.toLowerCase(), b.toLowerCase());
export const caseInsensitiveStringCompare = (a: string, b: string) =>
stringCompare(a.toLowerCase(), b.toLowerCase());