chore: fix lint warnings

This commit is contained in:
Vignesh Natarajan
2026-02-02 21:15:43 -08:00
committed by Vignesh
parent f72214725d
commit 30098b04d7
5 changed files with 80 additions and 29 deletions

View File

@@ -204,7 +204,7 @@ function sortValue(value: unknown): unknown {
}
if (value && typeof value === "object") {
const sortedEntries = Object.keys(value as Record<string, unknown>)
.sort((a, b) => a.localeCompare(b))
.toSorted((a, b) => a.localeCompare(b))
.map((key) => [key, sortValue((value as Record<string, unknown>)[key])]);
return Object.fromEntries(sortedEntries);
}