compareIds = (a, b) => {
	if (typeof a !== typeof b) {
		return typeof a < typeof b ? -1 : 1;
	}
	if (a < b) return -1;
	if (a > b) return 1;
	return 0;
}
@param {string | number} a first id
@param {string | number} b second id
@returns {-1 | 0 | 1} compare result