Skip to content

Commit 2de571f

Browse files
committed
fix ordering
1 parent 59910ac commit 2de571f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Mdx.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ let sortSection = mdxPages =>
6161
switch (a.order, b.order) {
6262
| (Some(orderA), Some(orderB)) =>
6363
switch Int.compare(orderA, orderB) {
64-
| 0 => String.compare(a.title, b.title)->Int.toFloat
65-
| result => result->Int.toFloat
64+
| 0. => String.compare(a.title, b.title)
65+
| result => result
6666
}
6767
| (Some(_), None) => -1.0
6868
| (None, Some(_)) => 1.0
69-
| (None, None) => String.compare(a.title, b.title)->Int.toFloat
69+
| (None, None) => String.compare(a.title, b.title)
7070
}
7171
)
7272

0 commit comments

Comments
 (0)