Skip to content

Commit 1539d42

Browse files
committed
feat: sort url map
1 parent e15b217 commit 1539d42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/find-duplicate-urls.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ export const findDuplicateUrls = async (
1818
}
1919
}
2020
}
21-
return urlMap;
21+
22+
const sortedUrlMap = new Map(
23+
[...urlMap.entries()].sort((a, b) => a[0].localeCompare(b[0]))
24+
);
25+
return sortedUrlMap;
2226
};
2327

2428
const matchUrls = (content: string) => {

0 commit comments

Comments
 (0)