sortOrigin = (a, b) => {
	const aIdent = a.module ? a.module.identifier() : "";
	const bIdent = b.module ? b.module.identifier() : "";
	if (aIdent < bIdent) return -1;
	if (aIdent > bIdent) return 1;
	return compareLocations(a.loc, b.loc);
}
@param {OriginRecord} a the first comparator in sort
@param {OriginRecord} b the second comparator in sort
@returns {1|-1|0} returns sorting order as index