Skip to content

Commit 974dbf3

Browse files
committed
update sort algorithm
1 parent 8d242ec commit 974dbf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sidebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const docsSidebar = [...glob.sync('docs/*/*.md')
88
new Map()
99
)
1010
.entries()]
11-
.sort(([day]) => day)
11+
.sort(([day1], [day2]) => parseInt(day1, 10) - parseInt(day2, 10))
1212
.map(([day, itemNumbers]) => ({
1313
type: 'category',
1414
label: `${day}日目`,

0 commit comments

Comments
 (0)