Move more modules from flavours/glitch/utils to flavours/glitch

This commit is contained in:
Claire
2022-10-11 11:39:52 +02:00
parent 2535ec4fcb
commit b75bf336bd
42 changed files with 36 additions and 36 deletions

View File

@@ -0,0 +1,11 @@
export default function compareId (id1, id2) {
if (id1 === id2) {
return 0;
}
if (id1.length === id2.length) {
return id1 > id2 ? 1 : -1;
} else {
return id1.length > id2.length ? 1 : -1;
}
};