Skip to content

Commit 72fd3d5

Browse files
Update apps/site/components/withBlogCrossLinks.tsx
Co-authored-by: Aviv Keller <[email protected]> Signed-off-by: Alex Yang <[email protected]>
1 parent 59ca901 commit 72fd3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/components/withBlogCrossLinks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const WithBlogCrossLinks: FC = () => {
2727
// Sort posts by semver for release category
2828
const sortedPosts =
2929
category === 'release'
30-
? [...posts].sort((a, b) => {
30+
? posts.toSorted((a, b) => {
3131
const versionA = extractVersionFromTitle(a.title);
3232
const versionB = extractVersionFromTitle(b.title);
3333

0 commit comments

Comments
 (0)