Reorganized utils files

This commit is contained in:
mgabdev
2019-07-27 21:49:17 -04:00
parent 7fe0390698
commit dd6129e218
29 changed files with 23 additions and 23 deletions

View File

@@ -0,0 +1,12 @@
'use strict';
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;
}
}