fix(evidence): order canonical projections independently of locale
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { compareUnicodeCodePoints } from "./unicodeCodePointOrder.js";
|
||||
|
||||
/** Stable browser sections used by coverage and omission accounting. */
|
||||
const browserSectionSchema = z.enum([
|
||||
"frames",
|
||||
@@ -138,6 +140,6 @@ const canonicalExclusions = (
|
||||
): BrowserExclusion[] =>
|
||||
[...exclusions].sort(
|
||||
(left, right) =>
|
||||
left.section.localeCompare(right.section) ||
|
||||
left.reason.localeCompare(right.reason),
|
||||
compareUnicodeCodePoints(left.section, right.section) ||
|
||||
compareUnicodeCodePoints(left.reason, right.reason),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user